下载遥控器分支(Download a remotes branch)

编程入门 行业动态 更新时间:2024-10-28 07:32:22
下载遥控器分支(Download a remotes branch)

当我执行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.

更多推荐

本文发布于:2023-07-04 10:06:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1023035.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:遥控器   分支   Download   remotes   branch

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!