我熟悉在命令行上使用 git blame
来显示哪个提交更改了文件的特定行。
是否有类似的功能来显示最后一次更改文件“mode”/flags 的提交?例如。设置或取消设置可执行标志。
最佳答案
您可以使用带有 --summary
标志的 git log
并在输出中搜索模式更改:
git log --summary -- path/to/file
来自documentation :
--summary
Output a condensed summary of extended header information such as creations, renames and mode changes.
关于git - 您如何找出文件模式更改来自哪个提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45858117/