I\'ve looked at all of the other ambiguous refname questions and none of them seem to help. Why am I getting this warning?
$ git checkout master
warning: ref
Although this doesn't apply to the OP's situation, I got myself a refname is ambiguous warning after accidentally doing a git branch origin/branch instead of a git checkout origin/branch. This created a local branch named origin/branch, which made it ambiguous with the remote branch. Solving the problem was as simple as git branch -D origin/branch (safe because -D operates on local branches).