Created
October 29, 2011 05:18
-
-
Save adrianratnapala/1324128 to your computer and use it in GitHub Desktop.
Shell one-liner to add empty .hgignore to all empty directories in a git repository.
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
find -type d -empty | sed '/^\.\/\.git/d' | xargs -I{} touch '{}/.gitignore' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment