Created
December 21, 2009 09:33
-
-
Save glennr/260874 to your computer and use it in GitHub Desktop.
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 gs='git status' | |
alias gca='git commit -a -m' | |
alias gcm='git commit -m' | |
alias gb='git branch' | |
alias gd='git diff' | |
alias gfo='git fetch origin' | |
alias gfom='git fetch origin master' | |
alias grom='git rebase origin/master' | |
alias gp='git pull' | |
alias gplom='git pull origin master' | |
alias gpom='git push origin master' | |
# gc => git checkout master | |
# gc bugs => git checkout bugs | |
function gc { | |
if [ -z "$1" ]; then | |
git checkout master | |
else | |
git checkout $1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment