Recursively add files by pattern

Posted by Michel Krämer on Stack Overflow See other posts from Stack Overflow or by Michel Krämer
Published on 2010-05-18T07:11:40Z Indexed on 2010/05/18 7:21 UTC
Read the original article Hit count: 284

Filed under:
|
|

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.java (and several other java files) with one command:

git add '*.java'

Unfortunately, that doesn't work as expected.

© Stack Overflow or respective owner

Related posts about git

Related posts about glob