git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C Hamano
Message 16 of 16 in “git-clean won't read global ignore”
  1. shunichi fujiNov 13, 2007
  2. Pierre HabouzitNov 13, 2007
  3. Junio C HamanoNov 14, 2007
  4. Andreas EricssonNov 14, 2007
  5. Junio C HamanoNov 14, 2007
  6. Johannes SchindelinNov 14, 2007
  7. Miles BaderNov 15, 2007
  8. Miles BaderNov 15, 2007
  9. Unify the use of standard set of exclude filesJunio C Hamano, Nov 15, 2007
  10. Jeff KingNov 15, 2007
  11. Junio C HamanoNov 15, 2007
  12. Jeff KingNov 15, 2007
  13. Junio C HamanoNov 15, 2007
  14. Matthieu MoyNov 15, 2007
  15. Junio C HamanoNov 15, 2007
  16. Matthieu MoyNov 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.