$ 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
क्यों अनदेखा नहीं किया जा रहा है?मेरी वैश्विक .gitignore फ़ाइल क्यों अनदेखा नहीं करती है?
~ /gitconfig में अन्य सेटिंग्स को ध्यान में रखा जाता है (रंग, संपादक)।
'Git config --global core.excludesfile ~/.gitignore'। इसे मिला [यहां] (http://crucial-systems.com/global_gitignore) और इस समय – ierax
@faif पर इसका परीक्षण नहीं कर सकता: यह काम करता है। इसे एक उत्तर के रूप में सबमिट करें ताकि मैं इसे स्वीकार कर सकूं। धन्यवाद। – augustin
मैंने ऐसा किया। आपको भी धन्यवाद :) – ierax