使用brew install git 安裝最新gitgit
vi ~/.bash_profile 下添加以下bash
export GIT_HOME=/usr/local/binit
export PATH=$MYSQL_HOME/bin:$PATH:$GIT_HOMEfile