Yanor.net/
Wiki
Blog
GitHub
Sandbox
開始行:
* コンフリクト時の対応 [#ifbe8753]
** コンフリクトするまで [#ae989d59]
マスターに戻ってブランチをrebaseしようとしたが、
git checkout master
git rebase branch1.0
...
Auto-merging foo.txt
CONFLICT (content): Merge conflict in foo.txt
...
foo.txtがコンフリクトした。
** コンフリクトの解消 [#r0f9957e]
vim foo.txt
(エディタでコンフリクトを修正)
git add foo.txt
git rebase --continue
** (解消する代わりに)マスターをコンフリクト前の状態に戻...
git rebase --abort
これでgit rebase branch1.0する前の状態に戻った。
終了行:
* コンフリクト時の対応 [#ifbe8753]
** コンフリクトするまで [#ae989d59]
マスターに戻ってブランチをrebaseしようとしたが、
git checkout master
git rebase branch1.0
...
Auto-merging foo.txt
CONFLICT (content): Merge conflict in foo.txt
...
foo.txtがコンフリクトした。
** コンフリクトの解消 [#r0f9957e]
vim foo.txt
(エディタでコンフリクトを修正)
git add foo.txt
git rebase --continue
** (解消する代わりに)マスターをコンフリクト前の状態に戻...
git rebase --abort
これでgit rebase branch1.0する前の状態に戻った。
ページ名: