Adding an Empty Directory to a Git repository

Link: How to add empty directory to Git repo using .gitignore

I was in the process of checking in a CodeIgniter project today when I realized that the ‘cache’ and ‘logs’ folders were being ignored. My .gitignore was set to ignore the content of those directories, but I did want the actual directories included. After a bit of Googling, I found that empty directories are automatically ignored by Git. The above link shows how to force the inclusion of empty directories without including their contents.