SyntaxFix
Write A Post
Hire A Developer
Questions
Your .gitignore file should look like this:
# Ignore Mac DS_Store files .DS_Store
As long as you don't include a slash, it is matched against the file name in all directories. (from here)