コンフリクト時の対応

コンフリクトするまで

マスターに戻ってブランチをrebaseしようとしたが、

 git checkout master
 git rebase branch1.0
 
 ...
 Auto-merging foo.txt
 CONFLICT (content): Merge conflict in foo.txt
 ...

foo.txtがコンフリクトした。

コンフリクトの解消

 vim foo.txt
 (エディタでコンフリクトを修正)
 git add foo.txt
 git rebase --continue

(解消する代わりに)マスターをコンフリクト前の状態に戻す

 git rebase --abort

これでgit rebase branch1.0する前の状態に戻った。


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2012-04-25 (水) 20:05:32