Cheatography
https://cheatography.com
Custom Cheat Sheet to the OhMyZsh Git Plugin.
Add
ga |
git add |
gaa |
git add --all |
Merge
gm |
git merge |
gmom |
git merge origin/$(git_main_branch) |
gmum |
git merge upstream/$(git_main_branch) |
gma |
git merge --abort |
Push
gp |
git push |
gpf |
git push --force-with-lease |
gpsup |
git push --set-upstream origin $(git_current_branch) |
Stash
gsta |
git stash save |
gstaa |
git stash apply |
gstc |
git stash clear |
gstd |
git stash drop |
gstl |
git stash list |
gstp |
git stash pop |
|
|
Diff
gd |
git diff |
gdup |
git diff @{upstream} |
Branch
gb |
git branch |
gba |
git branch -a |
gbd |
git branch -d |
Fetch
gf |
git fetch |
gfa |
git fetch --all --prune |
gfo |
git fetch origin |
Checkout
gcb |
git checkout -b |
gco |
git checkout |
gcm |
git checkout $(git_main_branch) |
gcd |
git checkout $(git_develop_branch) |
Pull
gl |
git pull |
ggl |
git pull origin $(current_branch) |
ggu |
git pull --rebase origin $(current_branch) |
gpr |
git pull --rebase |
|
|
Commit
gcam |
git commit -a -m |
gcmsg |
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 |
Reset
grh |
git reset HEAD |
grhh |
git reset HEAD --hard |
Rebase
grb |
git rebase |
grba |
git rebase --abort |
grbc |
git rebase --continue |
grbi |
git rebase -i |
grbs |
git rebase --skip |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by btqn