# .gitignore polution

3 messages from 2009-11-14 to 2009-11-16. Participants: Sverre Rabbelier, Jeff King.
Thread: https://gitlist.dev/t/21623

## Sverre Rabbelier, 2009-11-14 23:57

Subject: .gitignore polution
Message-ID: <fabb9a1e0911141557k5f6b0b8aud48b95784a9da4e3@mail.gmail.com>
URL: https://gitlist.dev/e/fabb9a1e0911141557k5f6b0b8aud48b95784a9da4e3%40mail.gmail.com

```
Heya,

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?

-- 
Cheers,

Sverre Rabbelier

```

## Jeff King, 2009-11-15 09:43

Subject: Re: .gitignore polution
Message-ID: <20091115094352.GA21477@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20091115094352.GA21477%40coredump.intra.peff.net
In-Reply-To: <fabb9a1e0911141557k5f6b0b8aud48b95784a9da4e3@mail.gmail.com>

```
On Sun, Nov 15, 2009 at 12:57:31AM +0100, Sverre Rabbelier wrote:

> 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

```

## Sverre Rabbelier, 2009-11-16 00:22

Subject: Re: .gitignore polution
Message-ID: <fabb9a1e0911151622p7863093dn175d2510a88bf268@mail.gmail.com>
URL: https://gitlist.dev/e/fabb9a1e0911151622p7863093dn175d2510a88bf268%40mail.gmail.com
In-Reply-To: <20091115094352.GA21477@coredump.intra.peff.net>

```
Heya,

On Sun, Nov 15, 2009 at 10:43, Jeff King <peff@peff.net> wrote:
> The other option is to mark them for ignore outside of the
> branch-specific ignore:
>
>  git ls-files -o --exclude-standard >>.git/info/exclude

Ah, that would work, thanks! :)

-- 
Cheers,

Sverre Rabbelier

```
