find . -name .git -prune -o -type d -empty -exec touch {}/.gitignore \;