23
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【git】fatal: 'origin' does not appear to be a git repository と怒られたときの対処法

Posted at

状況

git commit し、git push しようとしたら突然以下のようなエラーが発生

fatal: 'origin' 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 remote -v

を実行し、pushしたいURLも表示されていた。

対処方法

以下のコードを実行して解決した。
再度urlを登録という意味なのかな

git remote add origin https://github****

なんだったのだろうか・・・

23
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?