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

Re: .gitignore polution

From
Jeff King <peff@peff.net>
Date
Nov 15, 2009, 09:43 UTC
Message-ID
<20091115094352.GA21477@coredump.intra.peff.net>
In-Reply-To
<fabb9a1e0911141557k5f6b0b8aud48b95784a9da4e3@mail.gmail.com>
On Sun, Nov 15, 2009 at 12:57:31AM +0100, Sverre Rabbelier wrote:
Show 16 quoted lines
> I usually compile git from next (sometimes pu to test out a new
> feature), and when I then switch back to a development branch (usually
> based off master) I get something like this:
> 
> $ git status
> # On branch remote-helpers
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #	git-http-backend
> #	git-notes
> #	git-remote-hg
> #	test-index-version
> 
> Now I can easily do 'git clean -f', but it's somewhat annoying. How do
> other developers deal with this?
I use "git clean". :)

The other option is to mark them for ignore outside of the branch-specific ignore:

  git ls-files -o --exclude-standard >>.git/info/exclude
-Peff
Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 2 of 3 in “.gitignore polution”
  1. Sverre RabbelierNov 14, 2009
  2. Jeff KingNov 15, 2009
  3. Sverre RabbelierNov 16, 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.