I had a simple project managed in a Git repository. To date, I have not intentionally created any branches, but when I tried to create my first one today, using
$ git branch mybranch
I see this error:
warning: refname 'master' is ambiguous. fatal: Ambiguous object name: 'master'.
Digging deeper:
$ git branch -a * master remotes/master/HEAD -> master/master remotes/master/master
Is it ok to see in Git? Am I cloning my repository incorrectly? What is the best way to solve this problem?
git git-branch
Andrew J Mar 12 2018-11-11T00: 00Z
source share