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

Re: "exclude" and ".gitignore" for everyone

From
NCNikos Chantziaras <realnc@arcor.de>
Date
Jun 1, 2009, 14:16 UTC
Message-ID
<h00nqe$mj4$1@ger.gmane.org>
In-Reply-To
<E6F58E6B-4ECF-4A55-9249-9A8BBFBDBC24@silverinsanity.com>
Brian Gernhardt wrote:
Show 16 quoted lines
> On Jun 1, 2009, at 9:46 AM, Nikos Chantziaras wrote:
>> [...]
>> For example I've put "*.[oa]" and "*~" in ./git/info/exclude.  
>> However, the rest of the persons doing commits in the public 
>> repository might not have those entries.  Is everyone required to put 
>> those entries in "exclude" themselves or does Git allow for those to 
>> be automatically added next time they do a "git pull"?
> 
> If you commit a .gitignore, it will be used by everyone.  
> .git/info/exclude is for your personal excludes.  Generally, I'd suggest 
> putting build products in .gitignore and your editor's garbage in 
> exclude.
> [...]
> If you add and commit the .gitignore file it will be picked up by 
> everyone, while whatever backups, temp files, notes, or whatever you use 
> can be kept private in your exclude file.
Thanks, Brian!
Previous: Brian GernhardtNext: Matthieu Moy
Message 3 of 4 in “"exclude" and ".gitignore" for everyone”
  1. Nikos ChantziarasJun 1, 2009
  2. Brian GernhardtJun 1, 2009
  3. Nikos ChantziarasJun 1, 2009
  4. Matthieu MoyJun 1, 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.