fatal: The current branch master has no upstream branch

后端 未结 23 2293
误落风尘
误落风尘 2020-11-30 16:46

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

peeplesoft@jane3:~/846156 (master) $ git push

fatal: The current branch mas         


        
23条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 17:10

    Apparently you also get this error message when you forget the --all parameter when pushing for the first time. I wrote

    git push -u origin
    

    which gave this error, it should have been

    git push -u origin --all
    

    Oh how I love these copy-paste errors ...

提交回复
热议问题