6

I'm having a little trouble figuring out how to ignore all of these files that are created w/ Solr/Sunspot.

Basically I want to ignore everything inside of solr/data which includes a lot of folders, subfolders, and files.

Kyle Decot
  • 19,788
  • 38
  • 138
  • 255
  • 2
    Does `/solr/data` in your .gitignore file not work? Remember that .gitignore does not apply retroactively—if you've previously told git to track those files (with `git add`), you'll have to remove them from tracking before git will ignore them. – peterjmag Aug 09 '11 at 01:43
  • The thing that all-too-often catches me is that .gitignore needs to be committed with your list. – Art Taylor Aug 09 '11 at 03:18

2 Answers2

6

Just add

/solr/data

to your .gitignore.

Assumed directory layout:

.git
.gitignore
solr/data/
other/
folders/
README.txt
...
miku
  • 172,072
  • 46
  • 300
  • 307
3

You should be able to do /solr/data or put a .gitignore file inside solr/data and just put *.

Note that you can't ignore things that have already been committed.

Tyler
  • 21,306
  • 11
  • 59
  • 88