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

前端 未结 7 703
走了就别回头了
走了就别回头了 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:38

    In my case I am also getting the same error.

    fatal: remote part of refspec is not a valid name in https://github.com/username/repo.git

    Firstly I thought it is due to changing the username( as I recently change my username on github) but that's not a problem.

    When I tried git fetch and then git pull but getting the same error.

    At Last this is just solved by

    git push origin master 
    

    No Idea but this worked.

提交回复
热议问题