git refname 'origin/master' is ambiguous
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a git repository that is tracking several remote branches: $ git branch - a * master remotes / git - svn remotes / origin / master remotes / trunk When I try to setup a default one I get the following error: $ git branch -- set - upstream - to = origin / master master warning : refname 'origin/master' is ambiguous . fatal : Ambiguous object name : 'origin/master' . I would like to kremove some of the remote master branches but the master references are still there. How can I remove them to be able to set the default upstream