How to Git Ignore These Files

谁说我不能喝 提交于 2019-12-01 16:41:25

问题


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.


回答1:


Just add

/solr/data

to your .gitignore.

Assumed directory layout:

.git
.gitignore
solr/data/
other/
folders/
README.txt
...



回答2:


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.



来源:https://stackoverflow.com/questions/6990534/how-to-git-ignore-these-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!