Git push error: “origin does not appear to be a git repository”

后端 未结 13 1243
醉话见心
醉话见心 2020-11-29 00:28

I am following the instructions given here to create a Git repository. All went well until the last line:

$ git push -u origin master  
相关标签:
13条回答
  • 2020-11-29 00:53

    Most likely the remote repository doesn't exist or you have added the wrong one.

    You have to first remove the origin and re-add it:

    git remote remove origin
    git remote add origin https://github.com/username/repository
    
    0 讨论(0)
提交回复
热议问题