備忘録です。
何故か branch せずに機能追加してて正気に戻り、元リポジトリで branch 作成して統合した時のメモ。
とりあえず共通祖先からの patch を取得。
$ git format-patch HEAD~3 -o ~/tmp/patch
で、元リポジトリで branch して
$ git checkout -b viwpager-feature
am しました。
$ git am --directory=~/tmp/patch
む
git am でエラーが出ますね。困った。どうも .git/rebase-apply があるから、らしいので削除してリトライ。
$ rm -rf .git/rebase-apply
$ git am ~/tmp/patch/*
git log によれば無問題なようです。ちょっとすっきり。