当我执行git branch -a我有很多红色的git branch -a ,以remotes/origin/...开头remotes/origin/...
如何将其作为本地分支下载?
谢谢
When I execute git branch -a I have a lot of branchs in red who begin with remotes/origin/...
How can I download it as a local branch ?
Thx
最满意答案
无论分支如何,都可以使用git fetch来下载任何东西。 我猜你已经做过了。
做git checkout remotes/origin/blabla做一个(无头)结帐其中一个,或git checkout blabla ,如果你还没有git checkout blabla ,它会自动为远程分支创建一个本地分支。
Do git fetch to download anything/everything regardless of branches. You already did that though, I guess.
Do git checkout remotes/origin/blabla to do a (headless) checkout of one of them, or git checkout blabla which will automatically create a local branch for the remote branch if you do not have blabla yet.
更多推荐
发布评论