# 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
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
0