How to Git Ignore These Files

后端 未结 2 930
再見小時候
再見小時候 2021-01-18 08:17

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 s

相关标签:
2条回答
  • 2021-01-18 08:54

    Just add

    /solr/data
    

    to your .gitignore.

    Assumed directory layout:

    .git
    .gitignore
    solr/data/
    other/
    folders/
    README.txt
    ...
    
    0 讨论(0)
  • 2021-01-18 09:06

    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.

    0 讨论(0)
提交回复
热议问题