撤消 svn add 而不恢复本地编辑 [英] Undo svn add without reverting local edits

查看:30
本文介绍了撤消 svn add 而不恢复本地编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心运行了 svn add * 并添加了一堆不应该在存储库中的文件.我还对一些要保留的文件进行了本地编辑.有没有一种简单的方法可以撤消 svn add 而不恢复本地编辑?我在 Google 上看到的主要建议是 svn revert,据说可以撤消本地编辑.

I accidentally ran svn add * and added a bunch of files that shouldn't be in the repository. I also have local edits in some files that I want to keep. Is there a simple way to just undo the svn add without reverting the local edits? The main suggestion I see on Google is svn revert, which supposedly undoes the local edits.

推荐答案

那就是:

svn rm --keep-local

同样的事情发生在我身上.:-P

The same thing happened to me. :-P

很多人评论说你应该使用:

Many people have commented that you should use:

svn rm --keep-local FILENAME

将命令应用于一个或多个文件,而不是所有文件,这可能会产生意想不到的副作用.

to apply the command on one or many files, instead of everything, which may have unintended side-effects.

这篇关于撤消 svn add 而不恢复本地编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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