How to commit an empty folder in git

$ find . -type d -empty -exec touch {}/.gitignore \;