Skip to content

Instantly share code, notes, and snippets.

@childnode
Last active August 11, 2017 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save childnode/4a556ebbc44b3b9f12394b03d6c8d51c to your computer and use it in GitHub Desktop.
Save childnode/4a556ebbc44b3b9f12394b03d6c8d51c to your computer and use it in GitHub Desktop.
Find the guilty one
function git-guilty() { ./gradlew :test; [ "$?" != 0 ] && git reset --hard HEAD^ && git-guilty; }
git-guilty
echo "========== LAST WORKING ========="
git describe
git log -1 HEAD
echo "========== SUSPICIOUS PATCH ========="
git log -1 -p --stat HEAD@{1}
git reset --hard origin/HEAD
@childnode
Copy link
Author

yes, there is ... https://git-scm.com/docs/git-bisect but then you have to know at least one working revision ;p
If you know this, bisect is much faster!!! git bisect start HEAD HEAD~10; git bisect run ./gradlew :test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment