Git 如何查看那些文件被合并过

coolesting · June 18, 2013 · Last by doitian replied at June 18, 2013 · 2362 hits

比如进行一次 merge 后,文件 a.txt, b.txt, c.txt 被 merge 了, 之后,如何查看,这些被影响了的文件呢 ?

注意,只是文件名,不是文件详细内容, thanks for all

找到 merge commit 的 SHA1

git show --stat SHA1

谢谢了,原来是这样,很少用 show 命令。

#2 楼 @coolesting git log 也是可以的,用 -m 显示 merge commit 的 stat

git log --merges -m --name-only

You need to Sign in before reply, if you don't have an account, please Sign up first.