The following .gitignore is my favorite way to commit an (almost) empty folder to git:
# Ignore everything in this directory
*
# Except this file
!.gitignore
.gitignore can be present in any directory and there is a way to unignore a wildcard