Git master branch has no upstream branch

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

    Create the repo on github; add a README file on github and then clone the github repository. Creating the README file (or any file actually) is needed in order to get a master branch.

    Notice how github prompts for creating a README when creating a repository: enter image description here

提交回复
热议问题