Re: git-clean won't read global ignore
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Nov 15, 2007, 17:50 UTC
- Message-ID
- <vpqfxz71jq9.fsf@bauges.imag.fr>
- In-Reply-To
- <7v7ikj5shd.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes: > >> At last, I'll be able to write >> >> $ git ls-files -o --exclude-standard >> .gitignore >> $ $EDITOR .gitignore > > I think this is a good cookbook material to put somewhere in the > docs.
Here it is:
http://git.or.cz/gitwiki/GitTips?action=diff&rev2=217&rev1=216
== How to ignore files which are "Untracked" now? ==
{{{ $ git ls-files -o --exclude-standard >> .gitignore $ $EDITOR .gitignore }}}
(note : `--exclude-standard` is not yet in a released version of git as of november 2007, you'll have to use `--exclude-from=.gitignore --exclude-from=.git/info/exclude ...` if you don't have it).
-- Matthieu