How to unignore files in certain directories?

From: Peng Yu <hidden>
Date: 2016-06-15 22:54:20

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help