Remove .svn dirs

find . -name ".svn" -type d -exec rm -rf {} \;
This is useful when you are uploading svn project files to a new git repo.

By: gigo6000
2012-08-16 13:04:47

What Others Think

Please don't do this. Instead, add ".svn" to your .gitignore. If you *do* do this, don't use "-f".
jdd · 519 weeks and 6 days ago
If you are going to keep the deletion with the force flag, you can refactor by using the -delete parameter.
jawsome · 518 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: