/var/log/messages

Feb 25, 2014 - 1 minute read - Comments - Git

patch つくって apply するなど

備忘録です。

何故か 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 によれば無問題なようです。ちょっとすっきり。

見えない Fragment の使い方 本日の教訓

comments powered by Disqus