LoginSignup
1
1

More than 5 years have passed since last update.

Gitで本家リポジトリに追従する設定

Last updated at Posted at 2017-08-22

毎回忘れてしまうので、備忘録として。
追従するリポジトリ名を「upstream」で設定します。
git remote add upstream gitのURL

ex)
git remote add upstream git@gitxxxxxxxx.git

上記で設定した後、以下のコマンドを実行してリモートで設定

git push upstream

ブランチごとに設定する際は

git push upstream ブランチ名

ex)
git remote add upstream development

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