git2cpp checkout
Switch branches or restore working tree files
git2cpp checkout [OPTIONS] [<tree-ish|pathspec>...]
POSITIONALS:
<tree-ish|pathspec> TEXT ...
Tree-ish to checkout, and/or one/many pathspec(s)
e.g. checkout <branch>, checkout <tag>, checkout <file> ...,
checkout <branch> <file> ...
Note: use without '--'
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