[英]Git - How can I pull all branches from a single remote?
有一個git pull -all
可以從所有遙控器(?)或僅從原點拉所有分支,但是如果我有另一個名為spaceship
遙控器,我怎么能從這個遙控器拉所有分支呢?
這些是我的嘗試:
C:\DATA\Git\Repo>git pull --all spaceship
fatal: fetch --all does not take a repository argument
C:\DATA\Git\Repo>git pull spaceship --all
fatal: fetch --all does not take a repository argument
我試着研究SO,但是像所有與Git有關的問題一樣,有134個答案每個都有29條評論,還有一些人繼續討論有關Git內部工作的2頁內容。 請簡潔地輸入什么?
謝謝。
您可以運行git fetch
,它將獲取遙控器上的所有分支,然后可以使用git checkout branch
切換到那些git checkout branch
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.