Skip to content

Instantly share code, notes, and snippets.

@PabloC
Created August 18, 2008 17:29
Show Gist options
  • Save PabloC/6033 to your computer and use it in GitHub Desktop.
Save PabloC/6033 to your computer and use it in GitHub Desktop.
Include Empty Dirs on GIT Repo
Here's a handy snippet for touching a .gitignore file in all empty
directories except the .git folder itself:
find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec
touch {}/.gitignore \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment