Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Created April 6, 2017 01:14
Show Gist options
  • Select an option

  • Save mattmc3/7d80999fef45d68aa1cb2d8a23a2382a to your computer and use it in GitHub Desktop.

Select an option

Save mattmc3/7d80999fef45d68aa1cb2d8a23a2382a to your computer and use it in GitHub Desktop.
Git - add .gitkeep to empty dirs
find . -type d ! -path "*.git*" -empty -exec touch '{}'/.gitkeep \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment