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
  • 20,715
  • 39
  • 142
  • 263
  • 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

7

Just add

/solr/data

to your .gitignore.

Assumed directory layout:

.git
.gitignore
solr/data/
other/
folders/
README.txt
...
miku
  • 181,842
  • 47
  • 306
  • 310
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,762
  • 11
  • 61
  • 90