简体   繁体   English

忽略乌龟SVN中文件夹的更改

[英]Ignore changes in folder in tortoise SVN

I have folder named temp and there are some files, dynamically created with PHP system and at a midnight they are removed by CRON. 我有一个名为temp文件夹,并且有一些文件是使用PHP系统动态创建的,并且在午夜时分被CRON删除。

But, when I do something with my project, there will be some files and when I complete my work, then I want to commit changes but not files in this folder. 但是,当我对项目进行操作时,会有一些文件,当我完成工作时,我想提交更改,但不提交该文件夹中的文件。 Reason: it may (and will) cause errors on other computers, where is the same project. 原因:可能(并且将)在同一项目所在的其他计算机上导致错误。

I tried to add this folder to ignore list from context menu, but whoever will update to latest version of project, his temp will be removed. 我试图添加此文件夹以ignore list上下文菜单中的ignore list ,但是无论谁将更新到项目的最新版本,他的temp都将被删除。 How can I prevent from this? 我该如何预防呢?

Since all files in the folder are auto-generated, I recommend leaving the folder itself, but using svn rm on any files within the folder. 由于该文件夹中的所有文件是自动生成的,我建议保留文件夹本身,但使用svn rm上的文件夹的所有文件。 Then, set the svn:ignore property on the temp folder itself to "*". 然后,将临时文件夹本身的svn:ignore属性设置为“ *”。 This will ignore all files within the folder so they do not get added back in. 这将忽略文件夹中的所有文件,因此不会重新添加它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM