svn update 没有更新! [英] svn update is not updating!

查看:43
本文介绍了svn update 没有更新!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望 svn update 用来自服务器的文件覆盖我的本地文件,即使我的本地文件有修改,我也想扔掉它们并使用远程存储库上的版本.

I want svn update to overwrite my local file with the files from the server, even if my local files have modifications, I want to throw them away and use the version that's on the remote repository.

我该怎么做?我试过 svn update --force 但它不起作用.

How do I do that? I tried svn update --force but it doesn't work.

感谢您的回答,所以我正在使用这样的还原:

Thanks for the answers, so I'm using revert like this:

svn revert . -R

这是我应该如何使用它吗?安全吗?我有一个相同速度的 git 存储库,我不希望 svn 为我破坏我的 .git

Is this how I'm supposed to use it? is it safe? I have a git repository in the same pace and I don't want svn to corrupt my .git for me!

推荐答案

你应该使用 SVN revert.这会将工作副本中的文件恢复到原始状态.有关更多信息和示例,请在此处查看 svn 书:http://svnbook.red-bean.com/en/1.1/re25.html

You should use SVN revert. This would revert the files in your working copy to their original state. For more information and examples check the svn book here: http://svnbook.red-bean.com/en/1.1/re25.html

这篇关于svn update 没有更新!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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