Git blame shows a change made to a file. I want to know when that change was merged to our live branch.
I could probably track it down with a graphical client, but there’s a lot of other commits going on. The commit was not in the first couple of merges to the live branch.
git show <commit_hash>will give you details about the commit.Do this
git rev-list <commit_hash>..<branch> --first-parentgit rev-list <commit_hash>..<branch> --ancestry-pathThe last row in common will be the commit hash you’re looking for.
You can store them both in a separate file and then do
sdiffto quickly identify it.