![](/img/trans.png)
[英]GIT how to pull changes from a branch in one repository into a branch of another repository
[英]how to pull a branch in repository?
所以我有一些存儲庫,在那個存儲庫中有 master 和其他分支(或者我們可以調用分支 a、分支 b、分支 c)
我想拉分支 C,我該怎么做?
我正在使用命令行和 git
你可以做:
git pull origin c
然后檢查分支
git checkout c
嘗試使用git switch
,而不是舊的過時且令人困惑的git checkout
命令。
git fetch
git switch c
那是因為,從猜測模式:
如果
<branch>
未找到,但在一個遠程(稱為<remote>
)中確實存在一個具有匹配名稱的跟蹤分支,則視為等同於git switch -c <branch> --track <remote>/<branch>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.