I just cloned the repo and started a new branch in Git. I have done this many times without encountering a problem. Tonight, when I tried to use git branch --set-upstream develop origin/develop to set the upstream location, I got this error:
fatal: Ambiguous object name: 'origin/develop'.
Reading suggests that this is the result of the same branch name as in the beginning, and in the console / origin. I do not understand the difference between the two, and why they conflict in this way. I typed git branch -a and this was the result:
* develop master origin/develop remotes/origin/HEAD -> origin/master remotes/origin/develop remotes/origin/master
I am confused by the difference between origin/develop and remotes/origin/develop , and why this will result in a fatal: Ambiguous object name: 'origin/develop'. error fatal: Ambiguous object name: 'origin/develop'. .
source share