Git master branch has no upstream branch

前端 未结 10 737
北荒
北荒 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:24

    The following command worked for me:

    git branch --set-upstream-to=origin/master master
    

提交回复
热议问题