尝试svn结帐,但得到:svn:'.已经是其他网址的工作副本 [英] Try to svn checkout, but get: svn: '.' is already a working copy for a different URL

查看:569
本文介绍了尝试svn结帐,但得到:svn:'.已经是其他网址的工作副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将svn检出到我的public_html文件夹中,但是出现此错误: svn:."已经是其他网址的工作副本

I'm trying to svn checkout into my public_html folder, but I get this error: svn: '.' is already a working copy for a different URL

我的兄弟已经为我设置了一个样板站点,但是我已经对其进行了更改,并将这些更改放入我自己的存储库中.我如何使该文件夹不是他最初设置的仓库的工作副本?

My brother already set up a boiler plate site for me, but I've changed it and put those changes into a repo of my own. How do I make this folder not be a working copy of the repo he set up originally?

我可以删除public_html文件夹并新建一个吗?我从头开始就很好,因为我只是将一个已经安装的drupal网站签出到该网站上.

Can I delete the public_html folder and make a new one? I'm fine with starting from scratch, as I'm going to just checkout an already installed drupal site onto this site.

我在另一个问题中看到,解决方案可能是简单地删除.svn目录.我试过了,但是它说了.svn中几个子目录的权限被拒绝.

I saw in another question that a solution may be to simply delete the .svn directory. I tried this, but it said permission denied for several subdirectories in .svn.

在此先感谢您的帮助,希望这个问题不要太愚蠢...

Thanks in advance for ANY help, hope this question isn't too dumb...

推荐答案

如果您急于执行此命令序列,则应该这样做.

This sequence of commands should do it if you're in a hurry.

必须有一种方法来更新工作副本的参考URL,但我暂时不知道.

There's gotta be a way to update the working copy's reference url, but I don't know it off-hand.

$ svn diff > ../changes.patch
$ rm -rf * ..?*
$ svn checkout url
$ patch -p < ../changes.patch

这篇关于尝试svn结帐,但得到:svn:'.已经是其他网址的工作副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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