LoginSignup
0
0

More than 3 years have passed since last update.

Gitで開発中のブランチにリモートブランチの変更を取り込む

Last updated at Posted at 2020-08-15

環境

  • AmazonLinux2
  • Git

状況

  1. ローカルのdevelopブランチから派生させたfeature/○○○ブランチで開発を行っている
  2. リモートのdevelopブランチに他の人のプルリクがマージされる

手順

git checkout feature/○○○
git pull --rebase origin develop

変更を取り込んだ後にgit push origin feature/○○○がrejectされた場合

git push -f origin feature/○○○

※他の人が同じfeature/○○○を利用していない場合のみ

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