Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Find and delete .svn / .git subdirectories in a given folder
# === 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
You can’t perform that action at this time.