[英]How to Git Ignore These Files
I'm having a little trouble figuring out how to ignore all of these files that are created w/ Solr/Sunspot. 我在弄清楚如何忽略使用Solr / Sunspot创建的所有这些文件时遇到了一些麻烦。
Basically I want to ignore everything inside of solr/data
which includes a lot of folders, subfolders, and files. 基本上,我想忽略
solr/data
所有内容,其中包括很多文件夹,子文件夹和文件。
Just add 只需添加
/solr/data
to your .gitignore
. 到您的
.gitignore
。
Assumed directory layout: 假定目录布局:
.git
.gitignore
solr/data/
other/
folders/
README.txt
...
You should be able to do /solr/data
or put a .gitignore
file inside solr/data and just put *
. 您应该能够执行
/solr/data
或将.gitignore
文件放在 solr / data中,然后只需输入*
。
Note that you can't ignore things that have already been committed. 请注意,您不能忽略已经提交的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.