简体   繁体   English

Git:如何在合并提交中找出真正更改的文件?

[英]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.

相关问题 如何找出给定git提交中更改的文件? - How to find out what files changed in a given git commit? 如何找出完整的詹金斯构建而不是特定提交的git中所有已更改文件的列表? - how to find out list of all changed files in git for full jenkins build and not for a particular commit? Git - 如何找到第一次提交并获取特定分支的更改文件 - Git - how to find first commit and get changed files of specific branche 如何在 git 中查找从一个提交更改为另一个提交的文件数 - How to find the number of files changed from one commit to another in git Git:准备好真正的合并提交后,如何创建一个简单的提交? - Git: after preparing a real merge commit, how to create a simple commit? 查找与git相比与提交B相比已更改的提交A的文件? - Find files of commit A that have changed compared to commit B with git? Git合并仅更改来自特定提交的文件(而不是整个diff) - Git Merge only changed files from a specific commit (not the entire diff) 是否有可能在事后找出哪些文件在合并提交中发生冲突? 或者强制git在提交消息中列出文件的方法? - Is it possible to find out which files conflicted in a merge commit after the fact? Or a way to force git to list the files in the commit message? 如何使用Visual Studio git集成查看合并提交中更改的文件 - How to see the files changed in a merge commit using Visual studio git integration 如何在合并前找到最后的 git 提交 - How to find last git commit before a merge
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM