Created
November 17, 2019 23:35
-
-
Save dizzersee/6e16aed58a5909178f1bbc36de643c74 to your computer and use it in GitHub Desktop.
rm all files but gitignore
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
find . -type f ! -iname ".gitignore" -delete | |
find . -empty -type d -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment