Skip to content

Instantly share code, notes, and snippets.

@b333z
Forked from anonymous/gist:4290841
Last active October 14, 2015 02:07
Show Gist options
  • Save b333z/4290844 to your computer and use it in GitHub Desktop.
Save b333z/4290844 to your computer and use it in GitHub Desktop.
git add .gitkeep to working dir tree to preserve empty dirs
find . -type d -empty -exec touch {}/.gitkeep \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment