Viktor Hesselbom

Viktor Hesselbom

« Go back home

Why doesn't my .gitignore ignore my file?

One reason that your file, or filematch, is not ignored even though it's present in your .gitignore file could be that it's written on the first line of the .gitignore-file.

The first line is apparently reserved for a comment, or simply a blank line, so you have to start listing files starting on row 2.

Hope this little tidbit helped someone!