I have a global .gitignore but files aren't being ignored, why?

Posted by Michael Durrant on Ask Ubuntu See other posts from Ask Ubuntu or by Michael Durrant
Published on 2012-06-12T03:30:44Z Indexed on 2012/06/12 4:47 UTC
Read the original article Hit count: 279

Filed under:
|

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.

© Ask Ubuntu or respective owner

Related posts about home-directory

Related posts about git