记录在Ubuntu平台使用Git时使用的命令别名
# vim ~/.bashrc
# 增加如下内容
alias gr='git remote show origin'
alias gb='git branch'
alias gbv='git branch -vv'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gco='git checkout'
alias gp='git pull'
alias gps='git push'
alias grh='git reset --hard HEAD~1'
alias grs='git reset --soft HEAD~1'
alias grm='git reset --mixed HEAD~1'
alias gd='git diff'
alias gl='git log'