githubをcloneした後にpushできなかった件 - meruneru/tech_memo GitHub Wiki
下記コマンドで、本wikiをcloneした後に、編集してgit pushしようとしたら、エラーになった。
remote.origin.urlにゴミが入っているようだった。
$ git clone https://github.com/meruneru/tech_memo.wiki.git
$ git push
fatal: '...' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ git config --list
...
remote.origin.url=...
調べてみると、このQiita記事がヒットした。
下記コマンドで、無事にremote.origin.urlを設定でき、pushできた。
$ git remote set-url origin [email protected]:meruneru/tech_memo.wiki.git
$ git config --list
...
remote.origin.url=https://github.com/meruneru/tech_memo.wiki.git
$ git push