(created/git2cpp/branch.md)=
# git2cpp branch

```{parsed-literal}
List, create or delete branches


git2cpp branch [OPTIONS] [&lt;branchname&gt;]


POSITIONALS:
&nbsp; &lt;branchname&gt; TEXT           The name of the branch to create or delete

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp; -d,     --delete            Delete a branch
&nbsp; -a,     --all               List both remote-tracking branches and local branches
&nbsp; -r,     --remotes           List or delete (if used with -d) the remote-tracking branches
&nbsp; -l,     --list              List branches
&nbsp; -f,     --force             Skips confirmation
&nbsp;         --show-current      Print the name of the current branch. In detached HEAD state,
&nbsp;                             nothing is printed.
```
