首先使用vim ~/.bashrc进入 ~/.bashrc文件
然后在~/.bashrc文件添加以下修改 凭自己的习惯添加
alias gst='git status' alias ga='git add -A .' alias gc='git commit -m' alias gd='git diff' alias gdicdiff='git icdiff' alias gdopendiff='git difftool --tool=opendiff' alias gl='git log -3' alias gls='git log -3 --name-status' alias gp='git pull --rebase' alias gb='git branch' alias gbs='git branches'
alias gbs='工作目录'
然后执行 source ~/.bashrc 使配置生效