Error on branch creation: “warning: refname 'master' is ambiguous.”

后端 未结 2 1992
南笙
南笙 2021-02-15 16:42

I\'ve had simple project being managed in a Git repository. To date I haven\'t intentionally created any branches, but when I tried to create my first today using



        
2条回答
  •  长情又很酷
    2021-02-15 17:16

    It seems it's ambiguous because your remote name and branch name are both master. You can try renaming the remote to the more conventional origin by running

    git remote rename master origin
    

提交回复
热议问题