I have a global .gitignore but files aren't being ignored, why?
- by Michael Durrant
I have a .gitignore_global in my home directory
durrantm.../durrantm$ pwd
/home/durrantm
durrantm.../durrantm$ ls .git*
.gitconfig .gitignore_global
The .gitignore_global has:
durrantm.../durrantm$ head .gitignore_global
# RubyMine #
.idea/
# Compiled source #
###################
*.dll
*.exe
# Logs and databases #
######################
but when I git status for a project I still end up getting the .idea files when I start using rubyMine.
So my git status still shows this:
# modified: .idea/dataSources.xml
# modified: .idea/linker.iml
# modified: .idea/misc.xml
# modified: .idea/workspace.xml
I have run git config --global core.excludesfile ~/.gitignore_global bvut it didn't help.