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

前端 未结 7 717
走了就别回头了
走了就别回头了 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条回答
  •  旧时难觅i
    2020-12-06 05:52

    Why not follow the instructions GitHub gives you?

    git remote add origin git@github.com:darkoram/shpero_tracker.git
    git push -u origin master
    

    The commands you're issuing are saying "push to the remote repo named origin the branch named git@github.com:/darkoram/shpero_tracker.git", which is obviously not correct.

提交回复
热议问题