How do I recursively add files by a pattern (or glob) located in different directories?
For example, I\'d like to add A/B/C/foo.java and D/E/F/bar
A/B/C/foo.java
D/E/F/bar
Just use git add *\*.java. This will add all .java files in root directory and all subdirectories.
git add *\*.java