There's git pull -all
to pull all branches from maybe all remotes (?) or just the origin, but if I have another remote called spaceship
, how can I pull all branches just from this remote?
These are my attempts:
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
I've tried looking on SO but like all Git-related questions, 134 answers come back with 29 comments each and some guy going on for 2 pages about how Git works internally. Please, succinctly, what do I type in?
Thanks.
您可以运行git fetch
,它将获取遥控器上的所有分支,然后可以使用git checkout branch
切换到那些git checkout branch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.