Skip to main content

Module mutation

Module mutation 

Source
Expand description

State-changing git operations

Functions§

add_all
Stage all changes (including untracked files)
checkout
Checkout an existing branch
checkout_new_branch
Create and checkout a new branch from a starting point
commit
Create a commit with the given message
delete_branch
Delete a local branch (safe delete, requires merge)
delete_remote_branch
Delete a remote branch
discard_all_changes
Discard all uncommitted changes (both staged and unstaged, including untracked files)
fetch_prune
Fetch from origin with prune
force_delete_branch
Force delete a local branch
force_push_with_lease
Force push with lease (safer than –force)
log_commits
Get commits that are in to but not in from
pull
Pull from a remote branch
rebase
Rebase current branch onto a target
reset_soft
Soft reset to target (keeps changes in working directory as staged)