Create a new branch pointing at a target commit
This behaves like git_branch_create()
but takes an annotated
commit, which lets you specify which extended sha syntax string was
specified by a user, allowing for more exact reflog messages.
Name for the branch; this name is validated for consistency. It should also not conflict with an already existing branch name.
Annotated commit to which this branch should point. This object must belong to the given repo
.
Overwrite existing branch.
0, GIT_EINVALIDSPEC or an error code.