Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude specific files by extension from git log

Tags:

git

I need to exclude specific files depending of its extension, my command now is this:

git log --author="author.name" --pretty=tformat: --numstat

What I should add to exclude for example all files with extension .ktr and .db_diagram?

Thank you!

like image 724
rlopezo Avatar asked Oct 20 '25 16:10

rlopezo


1 Answers

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

like image 55
ElpieKay Avatar answered Oct 23 '25 07:10

ElpieKay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!