将远程分支拉到不同名称的本地回购站?(Pull remote branch into local repo with different name?)
好的,我做了一点研究,但我找不到确切的答案,所以我不得不问。
我有2个遥控器:来源和repo2。
我想做一些类似的事情
git pull repo2 master但这会把repo2的主分支拉到我的主人身上。 我可以为我的本地分行指定一个不同的分支吗?
Alright I did a little bit of research on this but I couldn't find an exact answer, so I have to ask.
I have 2 remotes: origin and repo2.
I'd like to do something like
git pull repo2 masterBut this would pull the master branch of the repo2 into my master. Can I specify a different branch to pull into, for my local branch ?
最满意答案
git checkout -b myBranchName repo2/master git checkout -b myBranchName repo2/master更多推荐
发布评论