拉取远程分支

https://blog.csdn.net/carfge/article/details/79691360

开始拉代码的操作链接

git branch -r

查看远程所有分支

git fetch origin 远程分支名x:本地分支名x

会创建本地分支,但是和远程分支没有映射关系

git branch 

查看本地分支名

git checkout 分支名

切换当前分支

git branch -u origin

与远程分支建立映射关系

再git pull拉取远程代码就可以了

猜你喜欢

转载自www.cnblogs.com/zhaoweihang/p/9765492.html