Skip to content

Instantly share code, notes, and snippets.

@CHTJonas
Created February 9, 2018 18:41
Show Gist options
  • Save CHTJonas/c1c32349adf790e527746190312b7897 to your computer and use it in GitHub Desktop.
Save CHTJonas/c1c32349adf790e527746190312b7897 to your computer and use it in GitHub Desktop.
oh-my-zsh git plugin aliases
Alias Command
g git
ga git add
gaa git add --all
gapa git add --patch
gua git add --update
gb git branch
gba git branch -a
gbl git blame -b -w
gc git commit -v
gc! git commit -v --amend
gca git commit -v -a
gca! git commit -v -a --amend
gcam git commit -a -m
gcan! git commit -v -a -s --no-edit --amend
gcs git commit -S
gcmsg git commit -m
gcl git clone --recursive
gco git checkout
gcb git checkout -b
gcm git checkout master
gcd git checkout develop
gcount git shortlog -sn
gd git diff
gf git fetch
gfa git fetch --all --prune
gp git push
gpsup git push --set-upstream origin $(current_branch)
gpoat git push origin --all && git push origin --tags
gts git tag -s
gl git pull
gup git pull --rebase
gupv git pull --rebase -v
glg git log --stat --color
glgg git log --graph --color
glgga git log --graph --decorate --all
glgm git log --graph --max-count = 10
glgp git log --stat --color -p
glo git log --oneline --decorate --color
glog git log --oneline --decorate --color --graph
glol git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
glola git log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all
gm git merge
gmom git merge origin/master
grb git rebase
grbi git rebase -i
grbm git rebase master
grba git rebase --abort
grbc git rebase --continue
grbs git rebase --skip
gru git reset --
grh git reset HEAD
grhh git reset HEAD --hard
gclean git clean -df
gpristine git reset --hard && git clean -dfx
gst git status
gsta git stash save
gstaa git stash apply
gstd git stash drop
gstl git stash list
gstp git stash pop
gstc git stash clear
gsts git stash show --text
gwip git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"
gunwip git log -n 1 | grep -q -c "--wip--" && git reset HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment