Cheatography
https://cheatography.com
https://github.com/jhillyerd/plugin-git
Checkout
gco |
git checkout
|
gcod |
git checkout develop
|
gcom |
git checkout (__git.default_branch)
|
gcb |
git checkout -b
|
Commit
gcam |
git commit -a -m
|
gcm |
git commit -m
|
gc |
git commit -v
|
gc! |
git commit -v --amend
|
gcn! |
git commit -v --no-edit --amend
|
gca |
git commit -v -a
|
gca! |
git commit -v -a --amend
|
gcan! |
git commit -v -a --no-edit --amend
|
Branch
gb |
git branch -vv
|
gba |
git branch -a -v
|
gbd |
git branch -d
|
gbD |
git branch -D
|
|
|
Pull
gl |
git pull
|
ggl |
git pull origin 'current-branch'
|
gup |
git pull --rebase
|
Push
gp |
git push
|
gp! |
git push --force-with-lease
|
gpu |
git push --set-upstream origin (current-branch)
|
Rebase
grb |
git rebase
|
grba |
git rebase --abort
|
grbc |
git rebase --continue
|
grbi |
git rebase --interactive
|
grbs |
git rebase --skip
|
Fetch
gf |
git fetch
|
gfa |
git fetch --all --prune
|
gfo |
git fetch origin
|
|
|
Local Files
ga |
git add
|
gaa |
git add --all
|
grm |
git rm
|
gd |
git diff
|
Merge
gm |
git merge
|
gmom |
git merge origin/(__git.default_branch)
|
Reset
grh |
git reset HEAD
|
grhh |
git reset HEAD --hard
|
Stash
gsta |
git stash
|
gstd |
git stash drop
|
gstl |
git stash list
|
gstp |
git stash pop
|
gsts |
git stash show --text
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by btqn