Re: git-clean won't read global ignore

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthieu Moy
Date: Thursday, November 15, 2007 - 10:50 am

Junio C Hamano <gitster@pobox.com> writes:


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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-clean won't read global ignore, shunichi fuji, (Tue Nov 13, 2:49 pm)
Re: git-clean won't read global ignore, Pierre Habouzit, (Tue Nov 13, 3:50 pm)
Re: git-clean won't read global ignore, Junio C Hamano, (Wed Nov 14, 1:05 am)
Re: git-clean won't read global ignore, Andreas Ericsson, (Wed Nov 14, 1:42 am)
Re: git-clean won't read global ignore, Junio C Hamano, (Wed Nov 14, 2:03 am)
Re: git-clean won't read global ignore, Johannes Schindelin, (Wed Nov 14, 10:46 am)
Re: git-clean won't read global ignore, Miles Bader, (Wed Nov 14, 9:21 pm)
Re: git-clean won't read global ignore, Miles Bader, (Wed Nov 14, 9:33 pm)
[PATCH] Unify the use of standard set of exclude files, Junio C Hamano, (Wed Nov 14, 11:38 pm)
Re: [PATCH] Unify the use of standard set of exclude files, Junio C Hamano, (Thu Nov 15, 12:41 am)
Re: [PATCH] Unify the use of standard set of exclude files, Junio C Hamano, (Thu Nov 15, 2:03 am)
Re: git-clean won't read global ignore, Matthieu Moy, (Thu Nov 15, 3:07 am)
Re: git-clean won't read global ignore, Junio C Hamano, (Thu Nov 15, 10:27 am)
Re: git-clean won't read global ignore, Matthieu Moy, (Thu Nov 15, 10:50 am)