Git拉取分支 发表于 2018-11-12 更新于 2019-07-23 分类于 Git git clone 不指定分支默认拉master主分支的代码 1https://example.com/account/service.git git clone 指定分支加上-b参数,后面跟上分支名,以上面为例,branch2就是另外一个分支 1git clone -b branch2 https://example.com/account/service.git