Skip to content

Instantly share code, notes, and snippets.

@timmow
Created June 7, 2012 16:23
Show Gist options
  • Select an option

  • Save timmow/2889853 to your computer and use it in GitHub Desktop.

Select an option

Save timmow/2889853 to your computer and use it in GitHub Desktop.
Add all empty directories within project to git
find . -depth -empty -type d -exec touch \{\}/.gitignore \;
git add .
git commit -m 'Sort out all the empty directories, as git does not track them by default'
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment