Skip to content

Instantly share code, notes, and snippets.

@mdijoux
Last active August 29, 2015 14:01
Show Gist options
  • Save mdijoux/aae064e2bbbc294b9462 to your computer and use it in GitHub Desktop.
Save mdijoux/aae064e2bbbc294b9462 to your computer and use it in GitHub Desktop.
A command line to fill a directory tree with .gitkeep files
find . -type d -empty | xargs ls | grep -v ./.git/ | sed -e 's/:$/\/.gitkeep/' | xargs touch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment