Skip to contentSkip to conversation

git include

DISCUSSION Rakotomandimby Mihamina 3 participants 6 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi all,

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

Thanks.

Signature · 3 lines
      Architecte Informatique chez Blueline/Gulfsat:
   Administration Systeme, Recherche & Developpement
                                   +261 33 11 207 36
#1 lore raw
Quoted 4 lines · Rakotomandimby Mihamina

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--

Signature · 1 line
Duy
#2 lore raw

Probably you want to add .gitignore too

*
!*.ml
!.gitignore

Quoted 12 lines · On Mon, 30 Nov 2009 13:45:57 +0700 Nguyen Thai Ngoc Duy <[email protected]>…
Quoted 4 lines · Rakotomandimby Mihamina

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--

#3 lore raw
Quoted 6 lines · Armen Baghumian

Probably you want to add .gitignore too

*
!*.ml
!.gitignore

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

Signature · 1 line
Duy
#4 lore raw

Yups, right

Quoted 11 lines · On Mon, 30 Nov 2009 14:29:46 +0700 Nguyen Thai Ngoc Duy <[email protected]>…
Quoted 6 lines · Armen Baghumian

Probably you want to add .gitignore too

*
!*.ml
!.gitignore

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

#5 lore raw
In reply to Nguyen Thai Ngoc Duy

11/30/2009 10:29 AM, Nguyen Thai Ngoc Duy::

Quoted 5 lines
Quoted 4 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.

Signature · 3 lines
      Architecte Informatique chez Blueline/Gulfsat:
   Administration Systeme, Recherche & Developpement
                                   +261 33 11 207 36