1.下载安装 https://git-scm.com/download/mac 2.把git上的代码克隆到本地 git clone git地址 3.查看远程所有分支 git branch -a 4.checkout切换分支 git checkout branch