Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git diff branch - filter by extension?

Tags:

git

I'm diffing 2 branches with git diff master..branch2 and diff shows me html, css, php files, etc. I'd like to only view php files here, but git diff master..branch2 -- '*.php' returns nothing. How do I actually filter it?

like image 655
Fluffy Avatar asked Sep 19 '26 16:09

Fluffy


1 Answers

Yeah this was an issue with the version of git - Centos 6.5 has 1.7.1 in current yum. I've updated it to 1.9.4 manually and it all worked!

like image 144
Fluffy Avatar answered Sep 22 '26 07:09

Fluffy



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!