8
8

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 1 year has passed since last update.

【Git】error: remote origin already exists.エラーが出た時の対処法

Posted at

タイトルのようなエラーが出た時の対処法です。

対処法

originを削除し、新たにoriginを登録し直します。

$ git remote rm origin

ちなみにリモートリポジトリ名をrenameしている場合は、以下のようにすれば良いです。

$ git remote rm <リモートリポジトリ名>

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?