git log --follow,显示包括合并在内的所有提交
git log --follow, show all commits including merges
我想 git log --follow file.ext
但显示所有提交,包括合并。
已尝试 no-max-parents
,但无济于事。
The -m
will do the trick for you, log -m
is for get into the merges.
git log -m --oneline --full-history --follow file.ext
这应该跟在合并 [-m
] 中的文件之后。
而且我假设您的目标是使用 --min-parents=2
而不是 no-max-parents
。 --min-parents=2
与 --merged
相同,因为它将 return 与不止一个父项一起提交。
您始终可以添加一些额外的标志以更友好的方式显示结果:
git log -m --name-only --oneline --follow file.ext
。它将使用提交的 SHA-1 以及消息
显示结果
我想 git log --follow file.ext
但显示所有提交,包括合并。
已尝试 no-max-parents
,但无济于事。
The
-m
will do the trick for you,log -m
is for get into the merges.
git log -m --oneline --full-history --follow file.ext
这应该跟在合并 [-m
] 中的文件之后。
而且我假设您的目标是使用 --min-parents=2
而不是 no-max-parents
。 --min-parents=2
与 --merged
相同,因为它将 return 与不止一个父项一起提交。
您始终可以添加一些额外的标志以更友好的方式显示结果:
git log -m --name-only --oneline --follow file.ext
。它将使用提交的 SHA-1 以及消息