强制 SVN checkout 命令覆盖当前文件 [英] Force an SVN checkout command to overwrite current files

查看:75
本文介绍了强制 SVN checkout 命令覆盖当前文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在向 SVN 添加现有站点.

I'm adding an existing site to SVN.

这些文件已经存在于网络服务器上,现在存储库中存在相同的副本(-配置文件).

The files already exist on the webserver, and now identical copies (- configuration files) exist in the repository.

我想将 webserver 目录转换成 SVN 工作副本,但是当我运行时:

I want to convert the webserver directory into an SVN working copy, but when I run:

svn checkout http://path.to/svn/repo/httpdocs .

我收到错误:

svn: 添加文件失败 '': 同名对象已经存在

svn: Failed to add file '': object of the same name already exists

如何告诉 SVN 只覆盖那些内容相同的文件?

How do I tell SVN to just overwrite those files whose contents are the same?

推荐答案

尝试 --force 选项.svn help checkout 提供了详细信息.

Try the --force option. svn help checkout gives the details.

这篇关于强制 SVN checkout 命令覆盖当前文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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