Why doesn't my global .gitignore file ignore?
$ cat ~/.gitconfig
[core]
editor = vim
excludefiles = /home/augustin/.gitignore
$ cat ~/.gitignore
toto
$ mkdir git_test
$ cd git_test/
$ git init
$ touch toto
$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# toto
nothing added to commit but untracked files present (use "git add" to track)
$ git --version
git version 1.6.3.3
Why isn't toto being ignored?
Other settings in ~/.gitconfig are taken into account (colors, editor).
Solution 1:
git config --global core.excludesfile ~/.gitignore