git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git ignore

From
MPMax Power <mkwright@gmail.com>
Date
Dec 16, 2008, 22:43 UTC
Message-ID
<21043430.post@talk.nabble.com>

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?

-- 
View this message in context: http://www.nabble.com/git-ignore-tp21043430p21043430.html
Sent from the git mailing list archive at Nabble.com.
Next: Linus Torvalds
Message 1 of 7 in “git ignore”
  1. Max PowerDec 16, 2008
  2. Linus TorvaldsDec 16, 2008
  3. Junio C HamanoDec 16, 2008
  4. test overlapping ignore patternsMichael J Gruber, Dec 18, 2008
  5. Stephen HabermanJul 7, 2011
  6. Junio C HamanoJul 8, 2011
  7. Stephen HabermanJul 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.