[英]Git: how to find out real changed files in a merge commit?
Conflict filenames are included in auto-generated commit message.冲突文件名包含在自动生成的提交消息中。
Beside conflict files, if someone makes changes to other files in a merge commit, it is worth noticing the changes to trace why he makes such changes in a merge commit.除了冲突文件,如果有人在合并提交中对其他文件进行了更改,值得注意的是这些更改以跟踪他在合并提交中进行此类更改的原因。
If no conflicts, a merge commit should have no real file changes, because each file follows either parent.如果没有冲突,合并提交应该没有真正的文件更改,因为每个文件都遵循任一父文件。
What git command line should I type?我应该输入什么 git 命令行?
I need changed file names only, not diff content.我只需要更改文件名,而不是差异内容。
If you git show
a merge commit, it will show you only that merge commit's changes.如果你
git show
一个合并提交,它只会显示你那个合并提交的更改。 Every other change produced by one of the "merged commits" will be shown by git show
ing that commit.由“合并提交”之一产生的所有其他更改都将由
git show
该提交。
git show --stat
将显示合并提交本身触及的文件名的摘要。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.