LoginSignup
6
5

More than 5 years have passed since last update.

マージされてない他者のプルリクを取り込む

Last updated at Posted at 2015-03-19

チーム開発をしててまだマージされてない、他の人のプルリクを取り込みたい時のやり方。

分かりやすく、

  • プルリクを送ったユーザー…taro
  • プルリク元のリポジトリ…repo
  • 取り込みたいプルリク…feature

とする。

プルリクを送ったユーザーのリモートリポジトリを登録する。

git remote add taro git@github.com:taro/repo.git

リポジトリデータを取得する。

git fetch taro

masterにマージしても良いが、ブランチを切ってそこにマージするようにする。

git checkout -b hoge-branch

取り込みたいプルリクをマージ。

git merge taro/feature

6
5
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
6
5