我有一个文件夹中远程回购之间的交换,写的git远程-v后,我获得:混帐:回购
A https://github.com/A/repo.git (fetch)
A https://github.com/A/repo.git (push)
B https://github.com/B/repo.git (fetch)
B https://github.com/B/repo.git (push)
目前我在一个分支高手,但我想交换到B的主分支,我该怎么做?命令git checkout允许我只更改A的分支,但如果要与B连接则不起作用。
你是什么意思? git checkout可以让你检出来自任何回购的任何分支(只要该分支已从远程“取回”)。 – eftshift0