I have a git directory which contains the a whole bunch of files and then has a directory called \'sessions\'. \'sessions\' contains cookie information for my web.py program
Add a sessions/.gitignore file with
* !.gitignore
The second line tells git not to ignore the .gitignore file, so the folder is not empty but everything else is ignored.