In case of Git, all you need is to create a .gitignore file inside the cache/ directory with the content as follows.
* !.gitignore
The first line tells Git to ignore all contents, but the second line tells Git to keep the file .gitignore, and therefore, keeps it to be a non-empty directory.
1 comment:
Thanks!
Post a Comment