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
tobut not infrom - 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)