Skip to content

Instantly share code, notes, and snippets.

@gismo141
Created July 2, 2014 16:50
Show Gist options
  • Save gismo141/eeb08944ffb71f390369 to your computer and use it in GitHub Desktop.
Save gismo141/eeb08944ffb71f390369 to your computer and use it in GitHub Desktop.
pushing empty folders to git-repository
find ./ -type f -name ".keep" -exec rm {} \;
find ./ -type d -empty | grep -v '/.git/' | xargs -i touch "{}/.keep"
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