0
0

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.

フォーク元の更新を組み込みたい時のメモ

Posted at

Githubでフォークしたリポジトリを更新する方法を無限に調べているのでメモっておこうという意気込み。
fork後、フォーク元のリポジトリに追いつきたい時に使える。

$ git remote add upstream https://github.com/zzz/xxx

$ git remote -v
origin	https://github.com/aaa/xxx.git (fetch)
origin	https://github.com/aaa/xxx.git (push)
upstream	https://github.com/zzz/xxx.git (fetch)
upstream	https://github.com/zzz/xxx.git (push)

$ git fetch upstream
$ git merge upstream/master

※ mainブランチの場合もあるのでそこは注意

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?