How to git ignore these files

I am having small problems with how to ignore all these files created by w / Solr / Sunspot.

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

+6
source share
2 answers

Just add

 /solr/data 

to your .gitignore .

Estimated catalog layout:

 .git .gitignore solr/data/ other/ folders/ README.txt ... 
+6
source

You can do /solr/data or put the .gitignore file inside .gitignore / data and just put * .

Please note that you cannot ignore things that have already been completed.

+3
source

Source: https://habr.com/ru/post/894600/


All Articles