Skip to content

Instantly share code, notes, and snippets.

@glennr
Created December 21, 2009 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glennr/260874 to your computer and use it in GitHub Desktop.
Save glennr/260874 to your computer and use it in GitHub Desktop.
###
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