title: "git add" using wildcard is not functioning as I hoped - must I cd into specific directories?
body: <p>When I try to do a basic <code>git add *.erb</code> (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.</p>
  
  <p>For (a different) example, <strong>git status</strong> is giving me:</p>
  
  <pre><code>#   modified:   config/routes.rb
  #   modified:   spec/models/question_spec.rb
  </code></pre>
  
  <p>I wanted to only stage the routes file, so I tried <strong>git add *s.rb</strong> 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.</p>
  
  <p>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?</p>