1、获取 git clone 2、本地只需要执行 git checkout -b dev origin/dev 就会在本地建立一个dev分支并且跟github 上的dev分支对应起来了 2、删除本地分支: git branch -d 分支名 3、切换本地分支: git checkout 分支名