threads / discuss / 21792

git include

Subject: git include

## tl;dr

6 messages between Nov 30, 2009 and Nov 30, 2009.

replies: 5people: 3as markdown or json

Rakotomandimby Mihamina· Nov 30, 2009, 06:41 UTC · lore
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· Nov 30, 2009, 06:45 UTC · re: Rakotomandimby Mihamina · lore

Re: git include

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· Nov 30, 2009, 07:10 UTC · re: Nguyen Thai Ngoc Duy · lore

Re: git include

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:

Show 12 quoted lines
> 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· Nov 30, 2009, 07:29 UTC · re: Armen Baghumian · lore

Re: git include

On Mon, Nov 30, 2009 at 2:10 PM, Armen Baghumian <armen@opensourceclub.org> wrote:

Show 6 quoted lines
>
> 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· Nov 30, 2009, 07:33 UTC · re: Nguyen Thai Ngoc Duy · lore

Re: git include

11/30/2009 10:29 AM, Nguyen Thai Ngoc Duy::
Show 5 quoted lines
>> 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· Nov 30, 2009, 07:53 UTC · re: Nguyen Thai Ngoc Duy · lore

Re: git include

Yups, right

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

Show 11 quoted lines
> 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

← back to recent threads