SVN - Change working copy to point at new svn path
-
24-09-2019 - |
문제
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?
해결책
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.
다른 팁
Use the svn switch
command with the --relocate
command line option.
Using TortoiseSVN
- Right click on working copy and select 'SVN Switch...'
- On 'Switch to branch' form Select new SVN path
Using Command
- Open console
- Navigate to the working copy
cd [working copy path]
- Write the command
svn relocate [new url]
To be more precise
svn switch --relocate [complete url of the old repo] [complete url of the new repo]
For example:
svn switch --relocate http://svn.repo.com:9880/website/branches http://svnrepo.com/web/branches
Using TortoiseSVN tortoisesvn docs
- Go To working copy roots
- Click Relocate.
- Enter The new exist path
Very Simple :
Step 1: Open command prompt / terminal and set workpath
Step 2: Execute this line svn switch --relocate http://newurl