Created
September 4, 2014 18:49
-
-
Save chadkeck/4a23349ab07975be10f8 to your computer and use it in GitHub Desktop.
git aliases
This file contains 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
alias g=git | |
alias ga='git add' | |
alias gap='git add --patch' | |
alias gb='git branch -v' | |
alias gbm='git branch --merged' | |
alias gc='git cherry -v' | |
alias gca='git commit --amend -C HEAD' | |
alias gcam='git commit -am' | |
alias gco='git checkout' | |
alias gcp='git cherry-pick' | |
alias gd='git diff --color' | |
alias gds='git diff --color --staged' | |
alias gfo='git fetch o' | |
alias ggd='git difftool --no-prompt -t opendiff' | |
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --' | |
alias glt='git log --graph --oneline --all --decorate' | |
alias gtt='git log --oneline --decorate --graph' | |
alias gpom='git push o master' | |
alias gr='git remote -v' | |
alias gra='git rebase --abort' | |
alias grc='git rebase --continue' | |
alias grom='git rebase o/master' | |
alias gs='git status -sb' | |
alias gsf='git show --pretty="format:" --name-only' | |
alias gsh='git show' | |
alias gt='git tag -l -n1' | |
alias stash='git commit -a -m "WIP: stash"' | |
alias unstash='git reset HEAD~1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment