My Git shortcuts for the bash
Add this to your ~/.bashrc to be even faster with Git!
# git shortcuts
alias g1='git log --oneline --decorate'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gm='gco master'
alias gcp='git cherry-pick -x -e'
alias gd='git diff HEAD'
alias gdi='git diff'
alias gl='git log --decorate'
alias gr='git remote'
alias gs='git -p status -s'
alias gp='git pull'
alias gpr='git pull --rebase'
alias gpu='git push'
alias gst='git stash'
Written by Beat Bolli
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Alias
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#