When I want to get a list of files for which I have changed this way, I use this command:
git diff --name-only
But many times I get a lot of files that I don’t need right now. For example, if I upload to my PHP server, I usually just need a list of .php files. I tried this:
git diff --name-only **/*.php
But, unfortunately, it only shows files in the first subdirectory. This does not appear to be a double star interpretation as recursive.
Any idea?
Rafid source
share