23

Possible Duplicate:
Ignoring directories in Git repos on Windows

I have a few folders, cache scattered throughout a webapp.

I am tracking the project with Git.

I have added empty index.html files to each cache folder.

I want to ignore all contents of the cache folders, but by default the folders are empty, hence the reason for the index.html.

I have tried

*cache/*
!*cache/index.html

But it is not ignoring them.

Community
  • 1
  • 1
Hailwood
  • 89,623
  • 107
  • 270
  • 423

0 Answers0