github-for-mac-issues icon indicating copy to clipboard operation
github-for-mac-issues copied to clipboard

ignore .DS_Store

Open ADogan opened this issue 13 years ago • 5 comments

By selecting Ignore on a .DS_Store file, it gets added into Settings -> Ignored files(.gitignore) but isn't removed from changes.

ADogan avatar Aug 07 '11 14:08 ADogan

I have exactly the same issue. It's really frustrating... No matter how I write in */.DS_Store or .DS_Store or *.DS_Store or anything, it just won't hide the DS_Store files.

gfarrell avatar Aug 31 '11 08:08 gfarrell

same issue here, ignored and now a .gitignore shows up as well in the changes.

ghost avatar Sep 08 '11 10:09 ghost

I think it's normal for .gitignore to show up in changes. The latest build seems to have fixed this problem.

gfarrell avatar Sep 16 '11 10:09 gfarrell

Ye figured that .gitignore should be added to the repo since everyone who has it should have the same ignored / hidden files.

ghost avatar Sep 26 '11 14:09 ghost

This not exactly a github proble but rather a git one: http://help.github.com/ignore-files/ If git is keeping track of a file, adding it to the gitignore won't stop it you have to manually: git rm --cached That is to say: git rm --cached .DS_Store

To prevent it, add .DS_Store to your main .gitignore (github preferences) so git won't ever keep track of .DS_Store s.

Malphaet avatar Nov 24 '11 17:11 Malphaet