[clfswm-devel] git: exclude patter for clfswm

Matthieu Moy Matthieu.Moy at imag.fr
Tue Mar 18 08:54:25 UTC 2008


Xavier Maillard <xma at gnu.org> writes:

> # git-ls-files --others --exclude-from=.git/info/exclude

Since upstream also uses git, you can put it in .gitignore, git add
.gitignore, and commit it. Other people will have it as well
automatically.

> git-ls-files --others --exclude-from=.git/info/exclude

Recent enough git have "git ls-files --exclude-standard" to take
.gitignore and .git/info/exclude into account. Note that you're
supposed to type "git ls-files", not "git-ls-files" which is the
deprecated syntax.

And you have "git status" which shows you all of this in a more
user-friendly way. If you have this

[color]
        branch = auto
        status = auto
        diff = auto

in your ~/.gitconfig, then the untracked files will pop up in red to
warn you that you probably forgot to "git add" or to ignore them
explicitly.

-- 
Matthieu



More information about the clfswm-devel mailing list