1. 在mac中为常用命令设置别名
- 编辑 bash_profile
vim ~/.bash_profile - 设置常用命令别名
alias pull='git pull origin'
alias push='git push origin'
alias add='git add .'
alias commit='git commit -m'
alias checkout='git checkout'
alias status='git status'
- 更新 bash_profile
source ~/.bash_profile - have fun~ 注意:alias 的 = 前后不能有空格!
未完待续...