执行 git pull 命令后,我得到了以下输出。
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> my_branch
问题是我创建了这个分支,并在这个分支上做了很多次提交,然后切换到其他分支并回到这个分支。然后一个新用户添加了几个提交,之后我就收到了这个消息。
我的问题 不是如何修复这个问题,而是想知道是什么原因导致了这个问题,以及如何防止它再次发生。
master
分支的上游已经被设置了。 - xdazz