TIMEX
TIMEX

Reputation: 272204

How do I remove all traces of SVN from my directory?

I want it to be cleared of SVN, recursively, but of course keep my files.

Upvotes: 0

Views: 566

Answers (3)

AlG
AlG

Reputation: 15167

You mean killing all the .svn directories? This should do it:

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

EDIT: Updated from comments. Doh!

Upvotes: 2

Robᵩ
Robᵩ

Reputation: 168786

You can fetch a new copy from the svn repository using the svn export command instead of svn checkout. The resulting tree will have no SVN bits in it.

Upvotes: 1

Jim
Jim

Reputation: 829

use find and look for the .svn directories

find . -name "FILE-TO-FIND"-exec rm -rf {} \;

Upvotes: 2

Related Questions