Skip to content

Instantly share code, notes, and snippets.

@jmhobbs
Created November 30, 2011 03:13
Show Gist options
  • Save jmhobbs/1407822 to your computer and use it in GitHub Desktop.
Save jmhobbs/1407822 to your computer and use it in GitHub Desktop.
New, empty framework shell? Don't want to loose empty folders when you "git add"? Run this first.
#!/bin/sh
for i in $(find . -type d -empty | grep -v .git);
do touch $i/.gitignore
git add $i/.gitignore
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment