0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【git】error: remote origin already existsと表示された時の対処法

Last updated at Posted at 2025-03-08

エラーの意味

error: remote origin already existsの意味は読んで字の如く、リモートオリジンを追加しようとしたけどもうあるから追加できないよ

という意味です

対処法

$ git remote rm origin

これで現在のリモートオリジンが削除されます
あとは新しいリモートオリジンを追加するだけです。

筆者の環境

gitに関連することなのであまり関係ありませんが、一応載せておきます。
Screenshot 2025-03-08 at 16.02.20.png

Screenshot 2025-03-08 at 16.03.14.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?