git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to unignore files in certain directories?
@ 2012-07-25 15:48 Peng Yu
  2012-07-25 18:05 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yu @ 2012-07-25 15:48 UTC (permalink / raw)
  To: git

Hi,

I have the following in .gitignore to ignore *.txt files.

*.txt

But I want to keep the *.txt files in, for example, data/ and all its
subdirectories. I don't know should the the correct way to unignore
these *.txt files. Could anybody show me the command that I should add
to .gitignore? Thanks!

-- 
Regards,
Peng

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to unignore files in certain directories?
  2012-07-25 15:48 How to unignore files in certain directories? Peng Yu
@ 2012-07-25 18:05 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2012-07-25 18:05 UTC (permalink / raw)
  To: Peng Yu; +Cc: git

Peng Yu <pengyu.ut@gmail.com> writes:

> Hi,
>
> I have the following in .gitignore to ignore *.txt files.
>
> *.txt
>
> But I want to keep the *.txt files in, for example, data/ and all its
> subdirectories. I don't know should the the correct way to unignore
> these *.txt files. Could anybody show me the command that I should add
> to .gitignore? Thanks!

Have you checked "git help gitignore" and looked at its example
section?  I think the second example is exactly the same as what you
described above.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-25 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 15:48 How to unignore files in certain directories? Peng Yu
2012-07-25 18:05 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).