Skip to content

Instantly share code, notes, and snippets.

@ryonlife
Created January 10, 2010 20:35
Show Gist options
  • Save ryonlife/273754 to your computer and use it in GitHub Desktop.
Save ryonlife/273754 to your computer and use it in GitHub Desktop.
Touch a .gitignore file in all empty directories except the .git folder.
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