when I run git status -s, git recognize file out of where .git folder.
paganotti:test paganotti$ pwd
/Users/paganotti/Documents/Project/prova/test
paganotti:test paganotti$ git status -s
M ../.DS_Store
M cambiato
the repository is “test” folder not “prova”! and .git folder is inside a “test” folder
Why git see ../.DS_Store that it is outside?
If you type git rm –cached ../.DS_Store it should untrack the file from later commits. Try it and see if it’s removed when you do git status -s
Hope that helps,
-Wes
More info @ http://help.github.com/ignore-files/