git2cpp reset

git2cpp reset#

Reset current HEAD to the specified state


git2cpp reset [OPTIONS] [<commit>]


POSITIONALS:
  <commit> TEXT               The ID of the commit that will become HEAD

OPTIONS:
  -h,     --help              Print this help message and exit
          --soft              Leave your working tree files and the index unchanged. For
                              example, if you have no staged changes, you can use git reset
                              --soft HEAD~5; git commit to combine the last 5
                              commits into 1 commit. This works even with changes in the
                              working tree, which are left untouched, but such usage can lead
                              to confusion.
          --mixed             Leave your working directory unchanged. Update the index to match
                              the new HEAD, so nothing will be staged.
          --hard              Overwrite all files and directories with the version from
                              <commit>, and may overwrite untracked files. Tracked
                              files not in <commit> are removed so that the working
                              tree matches <commit>. Update the index to match the new
                              HEAD, so nothing will be staged.