从 SVN 存储库中删除文件而不删除本地副本 [英] Remove file from SVN repository without deleting local copy
本文介绍了从 SVN 存储库中删除文件而不删除本地副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除"已在 SVN 存储库中的文件而不将其从我的文件系统中删除?
How can I "delete" a file which is already in the SVN repository without deleting it from my file system?
欢迎使用 TortoiseSVN 或命令行说明.
TortoiseSVN or command line instructions are welcome.
以下有效,但我希望有更好的东西:
The following works, but I am hoping for something nicer:
- 将文件复制到存储库外的其他位置.
- SVN 删除文件.
- 提交
- 将文件复制回去,并确保在将来提交时忽略它们.
推荐答案
svn delete --keep-local the_file
这篇关于从 SVN 存储库中删除文件而不删除本地副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文