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

Re: why no "ignore" command on git

From
SWScott Wiersdorf <scott@perlcode.org>
Date
Oct 14, 2009, 23:02 UTC
Message-ID
<20091014230217.GA87543@perlcode.org>
In-Reply-To
<42efdea40910141535g23a50b87p9b6c4a0fde7e842e@mail.gmail.com>

git does have a command to ignore files and directories: it's called 'emacs' (or 'vim' on some systems).

Seriously, the .gitignore file can contain a complex set of patterns to ignore, and you can have .gitignore files at lower directories in a hierarchy to override higher ones. This isn't something easily contained in a simple command.

Scott
On Thu, Oct 15, 2009 at 12:35:23AM +0200, Ralf Thielow wrote:
Show 22 quoted lines
> Hello,
> 
> why does git don't have an "ignore" command, to ignore some files or
> directories all the time.
> In many project file structures you have IDE specified project files
> or directories which
> should not be tracked on git. All the time git says that you can add
> these files, this is not
> usable if you want to add many files with the "git add ." command.
> 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?
> 
> best regards
> 
> Ralf
> --
> 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
-- 
Scott Wiersdorf
<scott@perlcode.org>
Previous: Ralf ThielowNext: Wesley J. Landaker
Message 2 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.