Friday, December 2, 2016

git ignore all except specific folders

Working on logstash pipeline.conf, changing it many times. It is good to keep the changing history.
I put pipeline.conf under myConfig directory, put my customized patterns under myPatterns directory and put my own elasticsearch template under myTemplate.
Everything under my* directory is the one I want to add to git and ignore everything else.

Here is my .gitignore

No comments:

Post a Comment