This article introduces how to modify the new svn address. Here, you can modify the new address in linux, windows, and centos. If you are interested, refer to it.
When the work environment is adjusted, sometimes the address of the SVN server needs to be modified. How can we modify the address of the local database instead of downloading it again? SVN has a simple solution:
1. The environment is Windows 7.
Right-click the root directory of the working copy-> TortoiseSVN-> Relocate, and modify the URL,
Method 1:
Right-click the root directory of the working copy, right-click TortoiseSVN-> Relocate, and modify the URL, but back up the file first, it is said that such an operation is dangerous (I have not found it so far ).
Method 2:
Use an alias instead of an IP address. You only need to modify the hosts file when changing the IP address, which is convenient.
2. Centos platform:
[Root @ ml02 melilishow] # su www
[Www @ ml02 melilishow] $ svn info
Path :.
URL: http://gblh.xxx.cc: 8080/svn/melilishow
Version library root: http://gblh.xxx.cc: 8080/svn/melilishow
Version library UUID: d4e9d482-44f2-434a-9335-c1686188efe6
Version: 11
Node Type: Directory
Scheduling: normal
Last modified by: xxxxxx
Last Modified Version: 11
Last modification time: 17:48:55 + 0800 (2)
[Www @ meeli02 redqeeRW] $ svn sw -- relocate http://gblh.xxx.cc: 8080/svn/melilishow http://svn.xxx.com: 8899/svn/melilishow
Certification field:
"Www" Password :******
Certification field:
Username :?????
"Meeliserver" Password :???? /
Note! Your password, for the authentication domain:
<Http://svn.xxx.com: 8899> VisualSVN Server
Only files on disks can be stored in plain text! If possible, consider configuring your system to make Subversion
You can save the encrypted password. See the documentation for details.
You can set the option "store-plaintext-passwords" to "yes" or "no" in "/home/www/. subversion/servers ",
To avoid this warning again.
Save Unencrypted Password (yes/no )? Yes
[Www @ ml02 melilishow] $ svn up
Linux platform:
The Code is as follows: |
Copy code |
Svn sw -- relocate svn: // old_ip/directory svn: // new_ip/directory
|