Mac 使用 Tips

1,630 阅读1分钟

1. 在mac中为常用命令设置别名

  1. 编辑 bash_profile vim ~/.bash_profile
  2. 设置常用命令别名
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'
  1. 更新 bash_profile source ~/.bash_profile
  2. have fun~ 注意:alias 的 = 前后不能有空格!

未完待续...