Created
July 2, 2014 16:50
-
-
Save gismo141/eeb08944ffb71f390369 to your computer and use it in GitHub Desktop.
pushing empty folders to 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 f -name ".keep" -exec rm {} \; |
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 | grep -v '/.git/' | xargs -i touch "{}/.keep" |
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 | grep -v '/.git/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment