我知道还有其他问题可以解决这个问题的变种。即this一。我如何一次拉出所有分支 - 包括新创建的分支?
问题在于答案假定所有本地分支已经在跟踪某个远程分支(甚至远程存在)。
我现在面临的问题是我正在与一个远程团队合作,有时他们可能会创建一个本地没有的远程分支。
如何在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.
请更新您的问题,提供更多关于您想要什么(您想要或不想从中获取哪些遥控器)的详细信息,您尝试过的命令以及结果。 – 2013-07-19 23:47:00
@Cupcake我已经做到了。 – marcamillion