| Switch / Checkout |
| gsw |
git switch |
| gswc |
git switch -c |
| gcm |
git checkout master |
| Add |
| ga |
git add |
| gaa |
git add -all |
| gapa |
git add --patch |
| gav |
git add --verbose |
| Commit / Cherry Pick |
| 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 |
| gcp |
git cherry-pick |
| Push |
| gp |
git push |
| gpu |
git push upstream |
| gpsup |
git push --set-upstream origin $(git_current_branch) |
| ggp |
git push origin $(current_branch) |
| gpf |
git push --force-with-lease |
| gpf! |
git push --force |
| gpoat |
git push origin --all && git push origin --tags |
| Fetch / Pull |
| gfa |
git fetch --all --prune |
| gup |
git pull --rebase |
| ggl |
git pull origin $(current_branch) |
| ggu |
git pull --rebase origin $(current_branch) |
| glum |
git pull upstream master |
| ggpnp |
git pull origin $(current_branch) && git push origin
$(current_branch)
|
|
| Diff |
| gd |
git diff |
| gdca |
git diff --cached |
| gdw |
git diff --word-diff |
| Log |
| glg |
git log --stat |
| glgp |
git log --stat -p |
| glgg |
git log --graph |
| glgga |
git log --graph --decorate --all |
| glgm |
git log --graph --max-count=10 |
| glo |
git log --oneline --decorate |
| Status |
| gsb |
git status -sb |
| gss |
git status -s |
| gst |
git status |
| Rebase |
| grb |
git rebase |
| grbi |
git rebase -i |
| grbs |
git rebase --skip |
| grbc |
git rebase --continue |
| grba |
git rebase --abort |
| Revert / Reset / Cleanup |
| grev |
git revert |
| grh |
git reset HEAD |
| groh |
git reset origin/$(git_current_branch) --hard |
| grhh |
git reset HEAD --hard |
| gpristine |
git reset --hard && git clean -dfx |
| gclean |
git clean -fd |
| gbda |
delete all merged branches |
|