Created
January 21, 2012 02:22
-
-
Save gwing33/1650826 to your computer and use it in GitHub Desktop.
My git shortcuts in my ~/.bash_profile
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
# Git Shortcuts | |
alias gs='git status' | |
alias gst='git status -sb' | |
alias ga='git add' | |
alias gau='git add -u' # Removes deleted files | |
alias gp='git pull' | |
alias gpu='git push' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment | |
alias gco='git checkout' | |
alias gl='git log --oneline' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I usually use also:
alias tree='git log --graph --decorate --oneline'
alias revert='git checkout --'