# multiple .gitignore-s

3 messages from 2007-04-22 to 2007-04-23. Participants: Yakov Lerner, Junio C Hamano.
Thread: https://gitlist.dev/t/7785

## Yakov Lerner, 2007-04-22 21:36

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

```
If repo has toplevel .gitignore, and subdir A/B
has also .gitignore, then how these two .gitignore-s
interact to affect A/B ? Are they shadowed, or accumulated ?

Thanks
Yakov

```

## Junio C Hamano, 2007-04-22 21:46

Subject: Re: multiple .gitignore-s
Message-ID: <7vwt04krp8.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwt04krp8.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <f36b08ee0704221436g661396b6m4ed8e16676175f4a@mail.gmail.com>

```
"Yakov Lerner" <iler.ml@gmail.com> writes:

> If repo has toplevel .gitignore, and subdir A/B
> has also .gitignore, then how these two .gitignore-s
> interact to affect A/B ? Are they shadowed, or accumulated ?

Study "Exclude Patterns" section of git-ls-files documentation,
perhaps?

```

## Yakov Lerner, 2007-04-23 10:51

Subject: Re: multiple .gitignore-s
Message-ID: <f36b08ee0704230351l19eae2dbl3e1ce7287658be06@mail.gmail.com>
URL: https://gitlist.dev/e/f36b08ee0704230351l19eae2dbl3e1ce7287658be06%40mail.gmail.com
In-Reply-To: <7vwt04krp8.fsf@assigned-by-dhcp.cox.net>

```
On 4/23/07, Junio C Hamano <junkio@cox.net> wrote:
> "Yakov Lerner" <iler.ml@gmail.com> writes:
>
> > If repo has toplevel .gitignore, and subdir A/B
> > has also .gitignore, then how these two .gitignore-s
> > interact to affect A/B ? Are they shadowed, or accumulated ?
>
> Study "Exclude Patterns" section of git-ls-files documentation,
> perhaps?

Thanks
Yakov

```
