From: Matthieu Moy Date: Thu, 15 Nov 2007 17:50:22 GMT Subject: Re: git-clean won't read global ignore Message-ID: In-Reply-To: <7v7ikj5shd.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Matthieu Moy 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