git add *cache/index.htmlgit commit -m "Adding index.html files to the cache directories"
…然后你的git status将看起来像:
$ git status# On branch master# Untracked files:# (use "git add <file>..." to include in what will be committed)## .gitignorenothing added to commit but untracked files present (use "git add" to track)
# git ls-files --others --exclude-from=.git/info/exclude# Lines that start with '#' are comments.# For a project mostly in C, the following would be a good set of# exclude patterns (uncomment them if you want to use them):# *.[oa]# *~assets/compiled/