Forked from alkos333/Recursively add .gitignore files to empty dirs
Last active
August 29, 2015 14:06
-
-
Save mullnerz/ae4516740554f29c5f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively add a .gitignore file to all directories | |
# in the working directory which are empty and don't | |
# start with a dot. Helpful for tracking empty dirs | |
# in a git repository. | |
find . -type d -regex ``./[^.].*'' -empty -exec touch {}"/.gitignore" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment