美文网首页
git pull/push branch

git pull/push branch

作者: 圼_2514 | 来源:发表于2019-11-07 10:14 被阅读0次

1.git pull <远程主机> <远程分支>:<本地分支>

2.git push <远程主机名> <本地分支名>:<远程分支名>

3.拉取远程分支到本地分支

git checkout remotes/origin/xxx 

//使用-t参数,它默认会在本地建立一个和远程分支名字一样的分支

git checkout -t remotes/origin/xxx 

相关文章

网友评论

      本文标题:git pull/push branch

      本文链接:https://www.haomeiwen.com/subject/qegsgftx.html