2

I have a project am working on:

there I have many files, I can do something like:

git add *.cvs

and git gently add all csv files for commiting, so far so good...

but if I try to do the same with *.html files, git just ignore my commands, then I have to add those one by one by the name

Why?

Ajit
  • 261
  • 3
  • 15
ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97

1 Answers1

0

Try quoting the pathspec like this:

git add "*.html"

The reason behind it is that shell expands the wildcard before git.

Andrzej Zabost
  • 1,387
  • 11
  • 26