Skip to content

Instantly share code, notes, and snippets.

@lorenadl
Created May 2, 2018 13:09
Show Gist options
  • Save lorenadl/0369735fd9ef2888c289a8b1d5549c59 to your computer and use it in GitHub Desktop.
Save lorenadl/0369735fd9ef2888c289a8b1d5549c59 to your computer and use it in GitHub Desktop.
[Linux + Windows] Remove all .svn directories

How to remove all .svn directories from an application folder

Linux

find . -name .svn -exec rm -rf '{}' \;

Before running a command like that, I often like to run this first:

find . -name .svn -exec ls '{}' \;

Windows

FOR /R myfolder %X IN (.svn) DO (RD /S /Q "%X" 2>nul)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment