拉取
git pull origin 云端分支名:本地分支名
如,拉取云端分支branch123
,拉到本地后命名该为同名bracnch123
git pull origin branch123:branch123
想改名,直接也一样可以改。
本地不需要有同名分支,可以在此过程中自动创建
克隆
部分项目比较大,仅需克隆拉取主分支,可在clone时增加-b参数,例如:
git clone -b master git@git.suibianchidianshenmegongsi.cn:fan/wufan-release.git
理论上clone时拉取其他分支也是可以的
git clone -b 我是分支名 我是clone链接