[clfswm-devel] git: exclude patter for clfswm

Philippe Brochard pbrochard at common-lisp.net
Tue Mar 18 21:13:10 UTC 2008


Matthieu Moy a écrit :

> 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.
>
Thanks! That's nice to have a git expert on this list: I learn a lot!

Philippe

-- 
Philippe Brochard    <pbrochard at common-lisp.net>
                      http://hocwp.free.fr




More information about the clfswm-devel mailing list