我知道还有其他问题可以解决这个问题的变体。也就是这个。
问题在于答案假设所有本地分支都已经在跟踪某个远程分支(甚至远程存在)。
我现在面临的问题是我正在与一个远程团队合作,有时他们可能会创建一个我在本地没有的远程分支。
我如何在 1 个命令中将最新更改拉到我在本地跟踪的分支,并拉出我未跟踪的所有分支的最新版本。
当我这样做时git pull --all
,只会拉出我跟踪的最新分支。
谢谢。
编辑:
我有两个遥控器 -bitbucket
和heroku
.
我想从我的遥控器中拉出所有分支bitbucket
......而不是从我的heroku
遥控器中。
我这样做了:
$ git pull bitbucket --all fatal: fetch --all does not take a repository argument
和这个:
$ git pull --all bitbucket fatal: fetch --all does not take a repository argument
还有这个:
$ git pull bitbucket Password: You asked to pull from the remote 'bitbucket', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.