GitコマンドのTips集
GitコマンドのTipsをまとめ中。 (2015/01/23)

git bisect
いつ失敗したかを調べるにはこんな感じ。
$ git bisect start
$ git bisect good REVISION
$ git bisect bad HEAD
$ git bisect run rspec SPEC_FILE
いつ成功に戻ったかを調べるには~/bin/irspec
あたりに
rspec $*
if [ $? != 0 ]; then exit 0; else exit 1; fi
という感じのスクリプトを用意して
$ git bisect run irspec SPEC_FILE
とすればOKです。