Git master branch has no upstream branch

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

    I had this problem today on my own remote repository, not Github and realized I had not made any commits to my local repository before trying to push to the remote repository.

    git add -A
    git commit
    git push origin master
    

提交回复
热议问题