我可以推送、拉取和结帐上游/主控完全没有问题,但我确实收到了警告。Upstream/master 用于跟踪对我 fork 的原始源代码所做的更改(遵循 github 说明)。
例如
$ git checkout upstream/master
warning: refname upstream/master is ambiguous
$ git branch -a
* master
upstream/master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/upstream/master
此命令也有模棱两可的错误:
$ git branch
* master
upstream/master
$ git checkout upstream/master filename.bar