# git include

6 messages from 2009-11-30 to 2009-11-30. Participants: Rakotomandimby Mihamina, Nguyen Thai Ngoc Duy, Armen Baghumian.
Thread: https://gitlist.dev/t/21792

## Rakotomandimby Mihamina, 2009-11-30 06:41

Subject: git include
Message-ID: <4B136932.9000908@gulfsat.mg>
URL: https://gitlist.dev/e/4B136932.9000908%40gulfsat.mg

```
Hi all,

I would like to track only *.ml files and ignore all others.
Is there a way to do that in .gitignore?

Thanks.

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36

```

## Nguyen Thai Ngoc Duy, 2009-11-30 06:45

Subject: Re: git include
Message-ID: <fcaeb9bf0911292245t6b18c238s2859d2cbd5dd26be@mail.gmail.com>
URL: https://gitlist.dev/e/fcaeb9bf0911292245t6b18c238s2859d2cbd5dd26be%40mail.gmail.com
In-Reply-To: <4B136932.9000908@gulfsat.mg>

```
On Mon, Nov 30, 2009 at 1:41 PM, Rakotomandimby Mihamina
<mihamina@gulfsat.mg> wrote:
> Hi all,
>
> I would like to track only *.ml files and ignore all others.
> Is there a way to do that in .gitignore?

This .gitignore should work (of course for new files only):
-->8--
*
!*.ml
-->8--
-- 
Duy

```

## Armen Baghumian, 2009-11-30 07:10

Subject: Re: git include
Message-ID: <20091130104055.3c3274f5@Office>
URL: https://gitlist.dev/e/20091130104055.3c3274f5%40Office
In-Reply-To: <fcaeb9bf0911292245t6b18c238s2859d2cbd5dd26be@mail.gmail.com>

```

Probably you want to add .gitignore too

*
!*.ml
!.gitignore

On Mon, 30 Nov 2009 13:45:57 +0700
Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:

> On Mon, Nov 30, 2009 at 1:41 PM, Rakotomandimby Mihamina
> <mihamina@gulfsat.mg> wrote:
> > Hi all,
> >
> > I would like to track only *.ml files and ignore all others.
> > Is there a way to do that in .gitignore?
> 
> This .gitignore should work (of course for new files only):
> -->8--
> *
> !*.ml
> -->8--

```

## Nguyen Thai Ngoc Duy, 2009-11-30 07:29

Subject: Re: git include
Message-ID: <fcaeb9bf0911292329p672572dcmbe0c01912d50fd0a@mail.gmail.com>
URL: https://gitlist.dev/e/fcaeb9bf0911292329p672572dcmbe0c01912d50fd0a%40mail.gmail.com
In-Reply-To: <20091130104055.3c3274f5@Office>

```
On Mon, Nov 30, 2009 at 2:10 PM, Armen Baghumian
<armen@opensourceclub.org> wrote:
>
> Probably you want to add .gitignore too
>
> *
> !*.ml
> !.gitignore

In that case it should be "!.git*" as you may miss .gitattributes or .gitmodules
-- 
Duy

```

## Rakotomandimby Mihamina, 2009-11-30 07:33

Subject: Re: git include
Message-ID: <4B13754F.9090306@gulfsat.mg>
URL: https://gitlist.dev/e/4B13754F.9090306%40gulfsat.mg
In-Reply-To: <fcaeb9bf0911292329p672572dcmbe0c01912d50fd0a@mail.gmail.com>

```
11/30/2009 10:29 AM, Nguyen Thai Ngoc Duy::
>> Probably you want to add .gitignore too
>> *
>> !*.ml
>> !.gitignore
> In that case it should be "!.git*" as you may miss .gitattributes or .gitmodules

*
!*.ml

Is perfect for me.

Thanks, guys.

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36

```

## Armen Baghumian, 2009-11-30 07:53

Subject: Re: git include
Message-ID: <20091130112349.591c5dfa@Office>
URL: https://gitlist.dev/e/20091130112349.591c5dfa%40Office
In-Reply-To: <fcaeb9bf0911292329p672572dcmbe0c01912d50fd0a@mail.gmail.com>

```
Yups, right

On Mon, 30 Nov 2009 14:29:46 +0700
Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:

> On Mon, Nov 30, 2009 at 2:10 PM, Armen Baghumian
> <armen@opensourceclub.org> wrote:
> >
> > Probably you want to add .gitignore too
> >
> > *
> > !*.ml
> > !.gitignore
> 
> In that case it should be "!.git*" as you may miss .gitattributes
> or .gitmodules

```
