1
1

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 remote add origin・・・の意味

Posted at

(手順通りに何気なく入力していたコマンドの意味を理解したので覚書です)

いつも当たり前に打っていたコマンド
1. $ git remote add origin アドレス
2. $ git push origin master

今回はこっちで良かった(理由:1回のみのpushなので)
1. $ git push アドレス master

理解したこと
$ git remote add origin アドレスの意味

・リモートリポジトリ<==>ローカルリポジトリ のやりとりはアドレスの指定が必要。
・やりとりに都度アドレスを指定するは大変なので「origin」という名前に結びつけて、アドレスを毎回書かなくて良くなる

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?