2
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?

OSS開発でforkしたリポジトリ側の同期方法のメモ

Posted at

はじめに

OSS開発時に、upstream(OSS本家)のGitリポジトリ側が進んだ場合の同期方法に関するメモです。

自分のPRがマージされた時にも実行します。本手順を実行すると、forkしたGitリポジトリ側のPRも自動でクローズされます。

手順

git checkout main

git fetch upstream

git merge upstream/main --ff-only

git push origin main -u
2
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
2
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?