Thread (2 messages) 2 messages, 2 authors, 2016-06-15
  • git ignore · Max Power <hidden> · 2016-06-15
  • Re: git ignore · Linus Torvalds <torvalds@linux-foundation.org> · 2016-06-15

Re: git ignore

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:45:47


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