I'm trying to find the origin of a bug in our code base. I have the SHA of a commit that I suspect caused the breakage, but I also know the date where the bug started to appear. I want to check when a given commit was merged into our main branch.
Is there an easy way to do that?
git bisect
should help you locate the bug quite nicely.
https://www.kernel.org/pub/software/scm/git/docs/git-bisect.html
http://git-scm.com/book/en/Git-Tools-Debugging-with-Git#Binary-Search
As for the commit SHA you are targeting, just run git log
on it, and it will tell you all about the commit (date, author, etc.). Run git log -p
on it to see what changes that commit made.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With