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

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

    Please consider the case (uppercase, lowercase) you are using for those remote addresses:

    git remote add origin git@github.com:darKoram/shpero_tracker.git
    # NOT:
    git remote add origin git@github.com:darkoram/shpero_tracker.git # won't work
    #                                      ^^^
    #                                       |
    

    See:

    • "Why are Github project document page urls case sensitive? What are the negative effects?"
    • "GitHub pushing/pulling error"

提交回复
热议问题