$ cat .gitignore
# OSX
*/.DS_Store
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
$ git status
On branch develop
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Assets/Sprites/.DS_Store
no changes added to commit (use "git add" and/or "git commit -a")
Es gibt mehr unabhängige Dateien in .gitignore und Statusmeldung im Moment, aber .gitignore selbst nicht geändert wird, wird diese Version verpflichtet..DS_Store erscheint noch in git status trotz in .gitignore sein
Wie kann ich das beheben?
mögliches Duplikat von [Git diff ignoriert angegebene Dateien in .gitignore nicht] (http://stackoverflow.com/questions/17820056/git-diff-doesnt-ignore-specified-files-in-gitignore) –