Forked from justinfrench/Recursively add .gitignore files to empty dirs
Last active
December 13, 2015 16:59
-
-
Save heartshare/4944773 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Adding Yii PHP framework project into Git repository | |
# http://code.dimilow.com/adding-yii-php-framework-project-into-git-repository/ | |
# 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. | |
for i in $(find . -type d -regex ``./[^.].*'' -empty); do touch $i"/.gitignore"; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment