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> EXP-20-DOMAIN-CONVERSION这是什么意思?听起来好像我有一个远程分支,但是它没有正确地连接到远程存储库。这曾经适用于不同的分支。
当我试图设置它时,我总是会出错。
>git branch --set-upstream-to=origin/EXP-20-DOMAIN-CONVERSI
ON EXP-20-DOMAIN-CONVERSION
error: the requested upstream branch 'origin/EXP-20-DOMAIN-CONVERSION' does not
exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.我试着去找吉特,但它不告诉我发生了什么事。我可以在我的网页浏览器中看到网上的分支。
>git branch --v
* EXP-20-DOMAIN-CONVERSION d53eae9 EXP-20-DOMAIN-CONVERSIOn started
testing hash code
...other branches我注意到上游漏油了。有个底座,可能是这引起的?我该怎么补救?
发布于 2015-09-25 19:51:30
正如您所猜测的,这是一个区分大小写的问题。在区分大小写的文件系统上,Git是区分大小写的。
若要将远程分支重命名为正确(通过跟踪、删除和重新推送),请运行以下命令:
$ git branch EXP-20-DOMAIN-CONVERSION origin/EXP-20-DOMAIN-CONVERSIOn
$ git push origin --set-upstream EXP-20-DOMAIN-CONVERSION
$ git push origin :EXP-20-DOMAIN-CONVERSIOn或者,如果您已经在正确的名称下拥有最新的本地分支,只需删除远程分支并重新推送:
$ git push origin --set-upstream EXP-20-DOMAIN-CONVERSION
$ git push origin :EXP-20-DOMAIN-CONVERSIOnhttps://stackoverflow.com/questions/32789597
复制相似问题