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

Re: why no "ignore" command on git

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 15, 2009, 11:31 UTC
Message-ID
<vpqaazsrj0q.fsf@bauges.imag.fr>
In-Reply-To
<200910142220.51725.wjl@icecavern.net>
"Wesley J. Landaker" <wjl@icecavern.net> writes:
Show 14 quoted lines
> On Wednesday 14 October 2009 16:35:23 Ralf Thielow wrote:
>> why does git don't have an "ignore" command, to ignore some files or
>> directories all the time.
> [...]
>> I read on some pages by a google search that you can create
>> a ".gitignore" directory or something like that. But you had to do
>> this manually.
>>
>> why there is no "ignore" command on git?
>
> You could always make your own git-ignore script, e.g.:
>
> #!/bin/sh
> echo "$@" >> .gitignore

Sure. OTOH, there are other interesting things a "ignore" command can do. bzr, for example, has a "bzr ignore" command that can either add stuff to your .bzrignore, or tell you which pattern cause which file to be ignored. That's handy sometimes.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Johannes SchindelinNext: Jeff King
Message 5 of 6 in “why no "ignore" command on git”
  1. Ralf ThielowOct 14, 2009
  2. Scott WiersdorfOct 14, 2009
  3. Wesley J. LandakerOct 15, 2009
  4. Johannes SchindelinOct 15, 2009
  5. Matthieu MoyOct 15, 2009
  6. Jeff KingOct 15, 2009

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.