TortoiseSVN:如何忽略提交中的 bin 内容 [英] TortoiseSVN: How to ignore bin contents from commit

查看:47
本文介绍了TortoiseSVN:如何忽略提交中的 bin 内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 TortoiseSVN 1.7.9.

I use TortoiseSVN 1.7.9.

当我svn commit项目文件夹时,如何忽略/删除/bin文件夹中的内容?我不想提交.dll.pdb等文件

How can I ignore / remove contents from /bin folder when I svn commit the project folder? I don't want to commit files such as .dll, .pdb, etc.

我将 .dll .pdb 条目放在 svn:ignore 属性中,但它不起作用,这些文件仍然显示在列表中当我执行提交时.

I put .dll .pdb entry in svn:ignore property but it does not work and these files still show up in the list when I perform a commit.

我不使用命令行客户端.在 Windows 资源管理器中,我右键单击根项目文件夹,然后单击 TortoiseSVN 上下文菜单中的提交.

I don't use command line client. In Windows Explorer I right-click on root project folder and click commit in TortoiseSVN context menu.

推荐答案

您可以在 TortoiseSVN 手册SVNBook.

TortoiseSVN 手册告诉我们:

TortoiseSVN Manual tells us:

如果文件已经在存储库中,则必须将其删除从存储库中添加到忽略列表中.幸运的是TortoiseSVN 有一个方便的快捷方式来做到这一点.TortoiseSVN →取消版本并添加到忽略列表 将首先将文件/文件夹标记为从存储库中删除,保留本地副本.它还添加了将此项目添加到忽略列表中,以便它不会被添加回再次颠覆了错误.一旦完成,你只需要提交父文件夹.

If the files are already in the repository, they have to be deleted from the repository and added to the ignore list. Fortunately TortoiseSVN has a convenient shortcut for doing this. TortoiseSVN → Unversion and add to ignore list will first mark the file/folder for deletion from the repository, keeping the local copy. It also adds this item to the ignore list so that it will not be added back into Subversion again by mistake. Once this is done you just need to commit the parent folder.

见SVNBook的重要说明;它解释了您的情况的行为以及为什么它不起作用".

See the important note from SVNBook; it explains the behavior and "why it does not work" in your case.

Subversion 对可忽略文件模式的支持仅扩展到将未版本控制的文件和目录添加到的一次性过程版本控制.一旦一个对象在 Subversion 的控制之下,忽略模式机制不再适用于它.换句话说,不要期望 Subversion 避免提交您对版本化文件仅仅是因为该文件的名称与忽略匹配模式——Subversion 总是注意到它所有的版本对象.

Subversion's support for ignorable file patterns extends only to the one-time process of adding unversioned files and directories to version control. Once an object is under Subversion's control, the ignore pattern mechanisms no longer apply to it. In other words, don't expect Subversion to avoid committing changes you've made to a versioned file simply because that file's name matches an ignore pattern—Subversion always notices all of its versioned objects.

这篇关于TortoiseSVN:如何忽略提交中的 bin 内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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