我正在为 Windows 使用 git bash:
$ git version
git version 1.8.0.msysgit.0
几个月来一切都运行良好,我逐渐习惯了 git 的工作方式,然后突然之间,每次我尝试拉取时,git pull 都会检索一些“新”分支:
me@MYPC /d/Projects/MyProject (master)
$ git pull
From github.com:ClientUsername/RepoName
* [new branch] branch1 -> origin/branch1
* [new branch] branch2 -> origin/branch2
Already up-to-date.
me@MYPC /d/Projects/MyProject (master)
$ git pull
From github.com:ClientUsername/RepoName
* [new branch] branch1 -> origin/branch1
* [new branch] branch2 -> origin/branch2
Already up-to-date.
我是否配置错误?这是正常行为吗?
编辑
在一些有用的评论之后,我从 .git\refs\remotes\origin 中删除了分支文件。我试图再次拉动并得到以下结果:
me@MyPC /d/Projects/MyProject (master)
$ git pull
From github.com:ClientUsername/RepoName
* [new branch] Branch1 -> origin/Branch1
* [new branch] Branch2 -> origin/Branch2
* [new branch] branch1 -> origin/branch1
* [new branch] branch2 -> origin/branch2
Already up-to-date.
me@MyPC /d/Projects/MyProject (master)
$ git pull
From github.com:ClientUsername/RepoName
* [new branch] Branch1 -> origin/Branch1
* [new branch] Branch2 -> origin/Branch2
Already up-to-date.
唯一的区别是分支名称的情况?