从修订历史记录中删除特定文件 [英] Remove specific files from revision history

查看:191
本文介绍了从修订历史记录中删除特定文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从修订历史记录中删除我本不想提交的特定文件.有人可以提供一种方法吗?

I am trying to remove specific files from the revision history that I did not mean to commit. Can someone provide a way to do this?

推荐答案

除了带有如何从存储库的历史记录中完全删除文件?" .

Besides the filtering repository dump with svndumpfilter there is another solution that allows you to get rid of specific files and folders in a repository. Please see the Apache Subversion FAQ entry "How do I completely remove a file from the repository's history?".

该解决方案要求您执行以下步骤:

The solution requires you to perform the following steps:

  1. 设置基于路径的授权规则拒绝读取 USERNAME 对您要从存储库历史记录中删除的文件或文件夹的 PATHS 的访问权限.请注意复数名词 paths .您要删除的文件或文件夹可以具有不同的名称,也可以位于存储库历史记录中的不同位置.设置拒绝规则时请考虑这一点.

  1. Setup path-based authorization rules to deny read access for a USERNAME to the PATHS of the file or a folder you want to remove from repository history. Please note the plural noun paths. The file or folder you want to get rid of could have different names or can be located in different places across a repository history. Please consider this when setting up deny rules.

创建一个空的存储库,

svndumpfilter不同,svnsync会将具有不可读源路径的复制操作自动转换为普通添加,如果需要过滤涉及复制操作的历史记录,这将很有用.

Unlike svndumpfilter, svnsync will automatically translate copy operations with an unreadable source path into normal additions, which is useful if history involving copy operations needs to be filtered.

这篇关于从修订历史记录中删除特定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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