GitHubリモートリポジトリとやり取りするコマンドについて解説します。
目次
(git remote)リモートを表示する

(git remote add <リモート名> <リモートURL>)リモートリポジトリを新規追加する

(git fetch <リモート名>)リモートから情報を取得する(フェッチ)

(git pull <リモート名> <ブランチ名>)リモートから情報を取得してマージする(プル)

プルの注意点

(git remote show <リモート名>)リモートの詳細情報を表示する

(git remote rename,git remote rm)リモートの変更・削除する

コメント