23

i like to know if it's possible (and if its possible how it can be achieved) to ignore files starting with # in git via .gitignore. I already tried

\\#.myfile

with no luck.

Matthias
  • 3,458
  • 4
  • 27
  • 46
  • That will only ignore that, i.e. #.myfile. Are all your files called #.something? Use \#.* then. – n_x_l Apr 24 '12 at 13:02

1 Answers1

46

Here is the right syntax for that:

\#*
Vivien
  • 1,159
  • 2
  • 14
  • 34