[英]Git - how to get all commit messages from last merge?
I am currently working on a git post-merge hook. 我目前正在使用git post-merge挂钩。 Now in this hook I need all commit messages that came in with the merge.
现在,在此挂钩中,我需要合并附带的所有提交消息。
Does anybody have a clue how to solve this? 有人知道如何解决这个问题吗?
Cheers! 干杯!
这应该工作:
git log $(git merge-base HEAD^1 HEAD^2)..HEAD^2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.