mac 通过使用alias简化git命令输入

alias gs='git s'
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 cdm='cd ~/Documents/mine'
alias cdw='cd ~/Documents/work'
alias cdmrd='cd ~/Documents/work/mrd'
alias cdd='cd ~/Documents/work/directory'
alias cdmd='cd ~/Documents/mine/directory'
alias gcl='git clone'
alias gpush='git push'
alias nrs='npm run serve'
alias ns='npm run start'
alias nd='npm run dev'
alias ddnm='rm -r package-lock.json & rm -r node_modules'

posted @ 2020-07-01 18:50  鬼鬼丶  阅读(372)  评论(0编辑  收藏  举报