Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git-clean won't read global ignore

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:43:51

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help