Skip to content

Instantly share code, notes, and snippets.

@ronanguilloux
Created November 10, 2011 09:03
Show Gist options
  • Save ronanguilloux/1354469 to your computer and use it in GitHub Desktop.
Save ronanguilloux/1354469 to your computer and use it in GitHub Desktop.
Rename a svn project (repo + local copy)
# Remote svn sever: root@remote
ssh root@remote
svnadmin create /home/svn/NewName
svnadmin dump /home/svn/OldName > OldName.dump
svnadmin load /home/svn/NewName < OldName.dump
rm /home/svn/OldName/ -rf
rm OldName.dump
exit
# Local copy: me@local
cd /home/me/workspace/
mv OldName NewName
cd NewName
# check the actual remote url : svn info
svn switch --relocate http://www.remote.com/svn/OldName/trunk http://www.remote.com/svn/NewName/trunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment