title: How do you get git to ignore all contents of a directory?
body: <p>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. </p>
  
  <p>I need the folder 'sessions' to remain in the git repository because without the folder the program does not function correctly. I don't need the actual contents of folder being stored in the git directory.</p>
  
  <p>So the question is:</p>
  
  <p>How can I get git to ignore the contents of a folder but not the folder itself?</p>