OGeek|极客世界-中国程序员成长平台

标题: iphone - 为 XCode 4 中的项目更改为不同的 SVN 存储库 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 18:22
标题: iphone - 为 XCode 4 中的项目更改为不同的 SVN 存储库

我有一个项目,我定期提交到名为“repo1”的 SVN 存储库,出于某种原因,我需要将项目的存储库位置更改为“repo2”,以便将来的任何提交/更新都将发生在“repo2”中。这在 XCode 4 中可能吗?如果是,如何?

附言我在本地网络上有 SVN 服务器,它有两个存储库:repo1 和 repo2。



Best Answer-推荐答案


我认为你不能用 Xcode 做到这一点,但你可以使用 svn 命令在你的工作副本中重新定位存储库 URL:

svn switch --relocate <from URL> <to URL>

注意:请务必在...之前备份您的工作副本; )

关于搬迁:

Rewrite working copy URL metadata to reflect a syntactic change only. This is used when repository's root URL changes (such as a scheme or hostname change) but your working copy still reflects the same directory within the same repository.

关于iphone - 为 XCode 4 中的项目更改为不同的 SVN 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8327567/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4