How to run tests for all commits during a rebase
I have a feature branch with plenty of commits. A---B---C master \ \-B'---C'---D'...---Z' feature I am working on feature but another developer has created commits B and C . Now I want to rebase feature on commit C , but I and/or automerge introduced errors during the rebase. My project has very good test coverage and I can run the tests from console using ant rebuild test , and now I want git to tell me which commit is the first commit that breaks my test so I can fix that commit. How can I do that? While you are on branch feature execute: git rebase --interactive --exec "ant rebuild test" C