Created
March 3, 2014 23:39
-
-
Save bcavileer/9337032 to your computer and use it in GitHub Desktop.
zsh git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcm='git checkout master' | |
| gco='git checkout' | |
| grba='git rebase --abort' | |
| grbc='git rebase --continue' | |
| grbi='git rebase -i' | |
| gclean='git reset --hard && git clean -dfx' | |
| grh='git reset HEAD' | |
| grhh='git reset HEAD --hard' | |
| gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' | |
| ga='git add' | |
| gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "--wip--"' | |
| gc='git commit -v' | |
| 'gc!'='git commit -v --amend' | |
| gca='git commit -v -a' | |
| 'gca!'='git commit -v -a --amend' | |
| gcmsg='git commit -m' | |
| gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "--wip--"' | |
| gss='git status -s' | |
| gst='git status' | |
| gd='git diff' | |
| gdc='git diff --cached' | |
| gclean='git reset --hard && git clean -dfx' | |
| grh='git reset HEAD' | |
| grhh='git reset HEAD --hard' | |
| gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' | |
| ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' | |
| ggpush='git push origin $(current_branch)' | |
| git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' | |
| gp='git push' | |
| gpoat='git push origin --all && git push origin --tags' | |
| ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' | |
| ggpull='git pull origin $(current_branch)' | |
| ggpur='git pull --rebase origin $(current_branch)' | |
| gl='git pull' | |
| gup='git pull --rebase' | |
| glg='git log --stat --max-count=10' | |
| glgg='git log --graph --max-count=10' | |
| glgga='git log --graph --decorate --all' | |
| glo='git log --oneline' | |
| gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' | |
| gb='git branch' | |
| gba='git branch -a' | |
| gm='git merge' | |
| gmt='git mergetool --no-prompt' | |
| gr='git remote' | |
| grmv='git remote rename' | |
| grrm='git remote remove' | |
| grset='git remote set-url' | |
| grup='git remote update' | |
| grv='git remote -v' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment