git2cpp checkout

git2cpp checkout#

Switch branches or restore working tree files


git2cpp checkout [OPTIONS] [<branch>]


POSITIONALS:
  <branch> TEXT               Branch to checkout

OPTIONS:
  -h,     --help              Print this help message and exit
  -b                          Create a new branch before checking it out
  -B                          Create a new branch or reset it if it exists before checking it
                              out
  -f,     --force             When switching branches, proceed even if the index or the working
                              tree differs from HEAD, and even if there are untracked files in
                              the way