There is a file in our git repository in work, I want to find out who merged this file into a branch.
I have the commit hash that identifies the commit (lets say 552a976f1a25f9bad57efb9455e951f6b7b3367f
) that introduced the file, and I know that the file is on the branch staging
.
How can I find the hash of the commit that merged the commit above into the staging
branch? I want to find the user who merged, and the date of the merge.
To see the merge commit's message and other details, use git show-merge with the same arguments.
Use the p4 integrated and p4 filelog to display merge history.
git log -1 --merges <hash>
Will show the most recent merge commit log since the <hash>
commit (including itself).
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