fatal: The current branch master has no upstream branch

后端 未结 23 2222
误落风尘
误落风尘 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

    If you define the action git push it should take it if no refspec is given on the command line, no refspec is configured in the remote, and no refspec is implied by any of the options given on the command line.

    Just do it:

    git config --global push.default current
    

    then

    git push
    

提交回复
热议问题