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

Re: [PATCH] user-manual: Add section on ignoring files

From
Johan Herland <johan@herland.net>
Date
May 16, 2007, 07:28 UTC
Message-ID
<200705160928.00900.johan@herland.net>
In-Reply-To
<7vhcqdha4b.fsf@assigned-by-dhcp.cox.net>
On Wednesday 16 May 2007, Junio C Hamano wrote:
Show 10 quoted lines
> Johan Herland <johan@herland.net> writes:
> 
> > +This typically includes files generated by a build process or temporary
> > +backup files made by your editor. Of course, 'not' tracking files with git
> > +is just a matter of 'not' calling "`git add`" on them. But it quickly becomes
> > +annoying to have these untracked files lying around; e.g. they make
> > +"`git add .`" and "`git commit -a`" practically useless, and they keep
> 
> I think we would want to s/and "`git commit -a`//; if you start
> tracking the file, .gitignore would not interfere with it AFAIK.

You're right. "git commit -a" doesn't actually add untracked files at all (you still have to do "git add", anyway). Don't know what I was thinking. Feel free to edit.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Junio C HamanoNext: J. Bruce Fields
Message 7 of 9 in “user-manual: Add section on ignoring files”
  1. user-manual: Add section on ignoring filesJohan Herland, May 15, 2007
  2. Jakub NarebskiMay 15, 2007
  3. Johan HerlandMay 15, 2007
  4. Junio C HamanoMay 15, 2007
  5. user-manual: Add section on ignoring filesJohan Herland, May 16, 2007
  6. Junio C HamanoMay 16, 2007
  7. Johan HerlandMay 16, 2007
  8. J. Bruce FieldsMay 16, 2007
  9. Johan HerlandMay 16, 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.