Git push: “fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.”

后端 未结 9 1304
再見小時候
再見小時候 2020-11-28 18:04

I know similar questions have already been asked.

But, I believe my issue is due to a mistake I have previously made and therefore is different: let me explain.

9条回答
  •  盖世英雄少女心
    2020-11-28 18:07

    What fixed this for me was re-setting my origin url:

    git remote set-url origin https://github.com/username/example_repo.git

    And then I was able to successfully git push my project. I had to do this even though when I viewed my origins with git remote -v, that the urls were same as what I re-set it as.

提交回复
热议问题