I don't want my MacBook's .DS_Store-files to be committed to my Git repository.
Unfortunately my .gitignore and even .gitignore_global seem to be ignored completely.
Any ideas what could be the reason?
ujjain:~/Dropbox/workspace| (HEAD) [+1] | feature/Jenkinsfile [+1]
$ cat .gitignore
...
# Mac OS Test
.DS_Store
ujjain:~/Dropbox/workspace| (HEAD) [+1] | feature/Jenkinsfile [+1]
$ git status
On branch feature/Jenkinsfile
Your branch is up to date with 'origin/feature/Jenkinsfile'.
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: .DS_Store
no changes added to commit (use "git add" and/or "git commit -a")