When I try to do a basic git add *.erb (or any simple wildcard expressions) git is not recognizing it (them). As a side-note, I have never done this before so I
I can't get recursive globs to work for me as my version of bash is too old. So what I do is
find . -name "*.rb" | xargs git add
Works a treat and I can add other filters there if I need - so if I want to add all but one file I can do this.
find . -name "*.rb" | grep -v "not_me.rb" | xargs git add
There's a couple of other cases that can be useful.
If you just want to add files that already exist in your repo you can
git add -u .
If you want to add every thing then
git add .