江の島エンジニアのTips集
Git

GitコマンドのTips集

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

GitコマンドのTips集

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です。

  • このエントリーをはてなブックマークに追加
  • follow us in feedly