从 git 日志中按扩展名排除特定文件

rlo*_*ezo 3 git

我需要根据其扩展名排除特定文件,我现在的命令是这样的:

git log --author="author.name" --pretty=tformat: --numstat
Run Code Online (Sandbox Code Playgroud)

我应该添加什么来排除例如扩展名为 .ktr 和 .db_diagram 的所有文件?

谢谢你!

Elp*_*Kay 6

git log --author="author.name" --pretty=tformat: --numstat -- . ':!*.ktr' ':!*.db_diagram'