在 Subversion 中,如何取消劫持文件? [英] In subversion, how can I un-hijack a file?

查看:26
本文介绍了在 Subversion 中,如何取消劫持文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我的团队有一组不应受版本控制的文件,但它们确实受版本控制.我想从我们的 subversion 存储库中删除它们,并允许每个人保留他们的本地版本.实现这一目标的最佳方法是什么?

Currently, my team has a set of files that should not be under version control, but they are. I would like to remove them from our subversion repository, and allow everyone to keep their local versions. What is the best way to accomplish this?

删除文件会将它们从存储库以及每个人的本地文件系统中删除.使用 --keep-local 标志几乎有效.它允许我将副本保留在我的机器上,从存储库中删除它,但仍然从其他人的文件系统中删除文件.

Deleting the files removes them from the repository, as well as everyone's local file system. Using the --keep-local flag almost works. It allows me to keep the copy on my machine, deletes it from the repository, but still removes the files from everyone else's file system.

谢谢!

推荐答案

删除文件后,您的用户必须使用 svn export 从存储库中恢复文件.

After you delete the file, your users will have to recover the file from the repository using svn export.

$ svn export -r x path ./

其中 x 是文件在删除之前存在的修订版,path 是文件的完整路径,./是放置文件的位置.

Where x is a revision where the file existed before it was deleted, path is the full path to the file, and ./ is where the file will be placed.

参见 svn help export更多信息.

See svn help export for more information.

这篇关于在 Subversion 中,如何取消劫持文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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