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'm sure it's a rookie mistake, but I've found no help in other SO posts or my school's alumni listserv so I thought this post may be appropriate.
For (a different) example, git status is giving me:
# modified: config/routes.rb
# modified: spec/models/question_spec.rb
I wanted to only stage the routes file, so I tried git add *s.rb and no dice. I am in the root of the app...do I need to be in the directory that contains the file(s) I'm trying to apply the wildcard expression to? That would be painful, but...actually...it just worked.
Hope this doesn't have to be a separate post, but is there an easier way to use wildcards where you don't have to cd into the specific directory?