Re: git ignore
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Dec 16, 2008, 22:53 UTC
- Message-ID
- <alpine.LFD.2.00.0812161450010.14014@localhost.localdomain>
- In-Reply-To
- <21043430.post@talk.nabble.com>
On Tue, 16 Dec 2008, Max Power wrote:
> > So I understand how to use the .gitignore file to ignore specific > files/directories that I put in there... is there a way to ignore everything > BUT a given file extension?
Something like
* !*.jpg
to only save the jpegs in your pr0n collection?
The first rule says "ignore everything". The second one says "don't ignore *.jpg files".
Untested.
Linus