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

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

问题描述

我正在尝试将 svn checkout 放入我的 public_html 文件夹,但出现此错误:svn: '.'已经是不同 URL 的工作副本

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

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

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 checkout,但得到:svn: '.'已经是不同 URL 的工作副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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