1.下載安裝包 http://git-scm.com/download/mac
2.安裝,需要在偏好設(shè)置-》運行不信任的開發(fā)者的軟件
3.安裝目錄在 usr/local/git 下,命令行運行g(shù)it --verison查看版本
設(shè)置提交代碼時的用戶信息
git config --global user.email "xxx@qq.com"
git config --global user.name "xxx@qq.com"
創(chuàng)建遠程分支需要本地 git checkout -b dev
然后 git push origin dev