LoginSignup
0
0

More than 3 years have passed since last update.

Gitの使い方-fatal:remote origin already exists.と表示された場合-備忘録

Last updated at Posted at 2020-05-07

プログラミング初心者の備忘録です。

Gitで「git remote」を実施したらエラーが出た

Gitで「git remote」コマンドを使用してリモートリポジトリに追加する際に発生したエラー。
既に別のリモートリポジトリを追加している可能性があるため、一旦「origin」を削除する。その後、再び「git remote」を実施する。

1.一旦、「origin」を削除する。

$git remote rm origin

2.「git remote」の実施
再び、「git remote」を実施する。

$git remote add origin git@github.com:ユーザー名/リポジトリ名.git
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