git push origin gives remote part of refspec is not a valid name

前端 未结 7 711
走了就别回头了
走了就别回头了 2020-12-06 05:14

I have created a remote repo using my GitHub account at https://github.com/darKoram/sphero_tracker.git. So far it just contains some wiki pages, but I\'m ready to upload my

7条回答
  •  悲&欢浪女
    2020-12-06 05:53

    I use

    git push origin git@github.com:/darkoram/shpero_tracker.git

    I also tried

    git push origin https://github.com/darKoram/sphero_tracker.git

    both times I get

    remote part of refspec is not a valid name in >https://github.com/darKoram/sphero_tracker.git

    The solution is to put the branch name at the end of the git command:

    git push https://github.com/darKoram/sphero_tracker.git master
    

提交回复
热议问题