LoginSignup
0

More than 5 years have passed since last update.

branchとmasterがconflictがある場合の対応メモ

Last updated at Posted at 2014-12-28
# masterを最新
git checkout master
git pull origin master

# マージ対象branchをcheckout
git checkout branchname

# masterをrebaseする
git rebase master

# conflictが発生時
# 差分あるファイルを修正し、addすると、rebaseが続ける
git add 変更されたファイル

# rebaseを継続
git rebase --continue

# 最新ステータスを確認
git status

# remoteのbranchに再push(強制的に)
git push origin branchname -f


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