Re: How to unignore files in certain directories?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peng Yu <pengyu.ut@xxxxxxxxx> 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.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]