Functionsยง
- checkout
- commits_
behind - How many commits
parenthas thatbranchdoes not: nonzero means the branch needs a restack. - config_
get - config_
get_ bool - config_
get_ regexp - config_
set - config_
unset - create_
branch - current_
branch - delete_
branch - Force-delete a branch. Callers are expected to have verified the branch
landed through review state: after a squash merge its commits are not
ancestry-merged, so
git branch -dcan refuse even though the work is in. - fetch_
branch - Fast-forward a local branch from its remote without checking it out.
- git_
path - is_
ancestor - local_
branches - merge_
base - pull_
ff_ only - push_
force_ with_ lease - push_
set_ upstream_ force_ with_ lease - Push branches and set upstream tracking; used before submitting so new branches exist remotely and rebased ones are safely updated.
- rebase
- rebase_
abort - rebase_
continue - rebase_
onto - Rebase only the commits after
base, replayingbase..branchontoparent. Used when the recorded fork point is known so commits that landed upstream by squash or rebase are not replayed. - remote_
default_ branch - Default branch of
remote(from its locally-known HEAD symref), if any. - remote_
url - rename_
branch - Rename a branch; git moves its
branch.<name>.*config along with it. - rev_
parse - set_
verbose - Pass raw git output through instead of capturing it.
- supports_
rebase_ update_ refs