Was trying to commit some changes. I used git add to add any new javascript files that I may have created using the wildcard *.js. Then I committed cha
even though I had just added them using the wildcard:
git add *.js
Shell wildcard expansion does not recurse into subdirectories. The wildcard is expanded before Git gets a chance to see it.
If you use git add '*.js', then Git will see the wildcard and will match it against all path names that end in .js. Because the * is in the initial position, this will end up recursively adding all .js files including in subdirectories.