Ignoring .DS_Store in a gitignore file using Tower

CMSCSS picture CMSCSS · Apr 30, 2013 · Viewed 22k times · Source

I have a new repo and before I perform the first commit I'd like to ignore .DS_Store files.

I've tried adding the following to the .gitignore file via Tower:

.DS_Store
*.DS_Store
*/.DS_Store

But only the .DS_Store file at the root is ignored, all others are included ready for commit.

Is there a trick to getting these files to be ignored?

Answer

Alex G picture Alex G · Aug 14, 2013

**/.DS_Store

try it out :) Hope it help