Before making a pull request, it is useful to make sure that compile is successful and tests are passing for each commit in the branch. We can do that automatically using -x
parameter.
For example:
git rebase -i -x make
will perform the interactive rebase and stop after each commit to execute make
. In case make
fails, git will stop to give you an opportunity to fix the issues and amend the commit before proceeding with picking the next one.