SVN - Change working copy to point at new svn path

quano picture quano · Jan 30, 2010 · Viewed 89.5k times · Source

I've got a SVN Repository that has moved to a new address/path. However, I've got a working copy with uncommitted source code still pointing to the old (now invalid) repository path. How do you change a working copy to point at a new repository?

Answer

Michael Krebs picture Michael Krebs · Jun 5, 2013

svn switch --relocate is deprecated as of version 1.7 of subversion. Use the svn relocate command instead.

It takes either FROM-PREFIX TO-PREFIX [PATH...] or TO-URL as arguments.

See

svn help relocate

for more information.