git忽略某个文件夹

data/cache/*
!data/cache/index.html
!data/cache/smiOAuthToken.php
原文地址:https://www.cnblogs.com/xiaobiaomei/p/8177168.html