git拉取更新代码

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_43523725/article/details/100700144

git拉取更新代码

1.添加远程分支至origin,方便管理:`

git remote add origin https://`

https:// 指的是git链接

2.查看本地分支:

git branch

3.更新拉取分支:

git fetch

4.如果本地没有想要的分支,创建本地分支并切换至此分支:
git checkout yourdev origin/yourdev (yourdev 是你的分支的名字)

5.从此分支下载更新代码:

git pull

参考链接:here

猜你喜欢

转载自blog.csdn.net/qq_43523725/article/details/100700144
今日推荐