Skip to main content

Module git

Module git 

Source

Functionsยง

checkout
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 -d can refuse even though the work is in.
git_path
is_ancestor
local_branches
merge_base
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, replaying base..branch onto parent. 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
rev_parse
supports_rebase_update_refs