Skip to main content
2 of 4
Added not path option

For Linux / MAC OSX, use the following one-liner, to create / put empty placeholder files into the folders, recursively:

find . -type d -empty -not -path "./.git/*" -exec touch {}/.gitkeep \;