Cheatography
https://cheatography.com
Add
g |
git |
ga |
git add |
gaa |
git add -all |
gapa |
git add --patch |
Commit
gc |
git commit -v |
gc! |
git commit -v --amend |
gca |
git commit -v -a |
gca! |
git commit -v -a -amend |
gcan! |
git commit -v -a --no-edit --amend |
gcans! |
git commit -v -a -s --no-edit --amend |
gcam |
git commit -a -m |
gcsm |
git commit -s -m |
gcmsg |
git commit -m |
gcs |
git commit -S |
Reset
grh |
git reset HEAD |
grhh |
git reset HEAD --hard |
gpristine |
git reset --hard && git clean -dfx |
gclean |
git clean -fd |
Push
gp |
git push |
ggp |
git push origin $(current_branch) |
gpoat |
git push origin --all && git push origin --tags |
Pull
ggl |
git pull origin $(current_branch) |
ggpur |
git pull --rebase origin $(current_branch) |
glum |
git pull upstream master |
ggpnp |
git pull origin $(current_branch) && git push origin $(current_branch) |
|
|
Log
glg |
git log --stat -max-count=10 |
glgg |
git log --graph --max-count=10 |
glgga |
git log --graph --decorate --all |
glo |
git log --online --decorate --color |
glog |
git log --oneline --decorate --color --graph |
glp |
git log pretty=$1 |
Diff
gd |
git diff |
gdca |
git diff --cached |
gdw |
git diff --word-diff |
Checkout
gco |
git checkout |
gcb |
git checkout -b |
gcm |
git checkout master |
gcd |
git checkout develop |
Stash
gsta |
git stash save |
gstaa |
git stash apply |
gstd |
git stash drop |
gstl |
git stash list |
gstp |
git stash pop |
gsts |
git task show --text |
Branch
gb |
git branch |
gba |
git branch -a |
gbd |
git branch -d |
gbnm |
git branch --no-merged |
gbr |
git branch --remote |
Rebase
grbi |
git rebase -i |
grbs |
git rebase --skip |
grbc |
git rebase --continue |
grba |
git rebase --abort |
gup |
git pull --rebase |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets