Last active
August 29, 2015 14:05
-
-
Save niraj-shah/ab67d9e463e5237c0b36 to your computer and use it in GitHub Desktop.
Find and delete .svn / .git subdirectories in a given folder
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
# === SVN === # | |
# find .svn folders in current directory | |
find . -name .svn -exec echo {} \; | |
# delete .svn folders in current directory | |
find . -name .svn -exec rm -rfv {} \; | |
# === GIT === # | |
# find .git folders in current directory | |
find . -name .git -exec echo {} \; | |
# delete .git folders in current directory | |
find . -name .git -exec rm -rfv {} \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment