Git master branch has no upstream branch

前端 未结 10 761
北荒
北荒 2021-01-30 16:53

I\'m trying to push one of my projects to github, and I keep getting this error:

fatal: The current branch master has no upstream branch.

I\'ve

10条回答
  •  情话喂你
    2021-01-30 17:25

    i faced the same problem just tell github to use the current head branch of your local repository:

    git push --set-upstream origin master
    

    wish it help you and others

提交回复
热议问题