如何将 subversion 本地副本重新附加到不同的远程? [英] How do you re-attach a subversion local copy to a different remote?

查看:30
本文介绍了如何将 subversion 本地副本重新附加到不同的远程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的 subversion 存储库已移至新主机,并且我们有连接到该主机的旧应用程序.我们无法使用旧名称为新服务器添加别名,我们如何将签出的客户端重新连接到新存储库?

Our subversion repository has been moved to a new host, and we have old applications that connect to that host. We CANNOT add an alias for the new server with the old name, how can we re-connect our checked out clients to the new repository?

推荐答案

示例:

svn switch --relocate \
    http://svn.example.com/path/to/repository/path/within/repository \
    http://svnnew.example.com/new/repository/path/within/repository

要记住的一件事是,假设您检查了项目path/within/repository",然后您必须转到工作副本的根目录,并执行上述命令.仅使用存储库根目录还不够(如 svn switch --relocate http://svn.example.com/path/to/repository/ http://svnnew.example.com/new/repository/),因为那行不通.

One thing which is to remember, lets assume you checked out the project "path/within/repository" then you have to go to the root of your working copy, and execute the above command. it is NOT enough just to use the repository root (as in svn switch --relocate http://svn.example.com/path/to/repository/ http://svnnew.example.com/new/repository/), because that wouldn't work.

这篇关于如何将 subversion 本地副本重新附加到不同的远程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆