Skip to content

Instantly share code, notes, and snippets.

@netmask
Created June 4, 2012 22:54
Show Gist options
  • Save netmask/2871335 to your computer and use it in GitHub Desktop.
Save netmask/2871335 to your computer and use it in GitHub Desktop.
create .gitignore on a empty directories
find . -type d -empty -exec touch {}/.gitignore \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment