Junio C Hamano [off-list ref] writes:
Matthieu Moy [off-list ref] writes:
quoted
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