自动将文件添加到特定文件夹内的 SVN [英] Automatically add files to SVN inside a specific folder

查看:38
本文介绍了自动将文件添加到特定文件夹内的 SVN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 TortoiseSVN 来管理我的 SVN 文件.这一切都很好,但我必须在提交之前手动将新文件添加到 SVN.

I use TortoiseSVN to manage my SVN files. This all works quite well, but I have to manually add new files to SVN before I commit them.

在 99% 的情况下,这完全符合要求,但现在我有一个文件夹,其中包含应该存储在 SVN 中的日志文件,但它们太动态了,无法手动添加.

In 99% of the cases that's exactly as wanted, but now I have a folder which contains logfiles that should be stored in SVN, but they are too dynamic to add them all manually.

所以我想要的是我只提交文件夹,所有新文件都会自动添加然后提交.

So what I want is that I just commit the folder and all new files are automatically added and then committed.

我在这里看到了一个解决方案,但没有使用 TortoiseSVN.

I've seen a solution here, but not with TortoiseSVN.

推荐答案

在 TortoiseSVN Commit 对话框中,选中Show unversioned files"复选框,然后选中Select/deselect all".现在添加了所有未版本控制的文件.这是 TorsoiseSVN 中最接近自动"的地方.

In the TortoiseSVN Commit dialog, select the "Show unversioned files" checkbox and then check "Select / deselect all". Now all your unversioned files are added. This is the closest you can come to "automatic" in TorsoiseSVN.

编辑
等一下,其实还有客户端TortoiseSVN 中的钩子脚本.您可以添加一个开始提交钩子",在所需的文件夹中运行 svn add *.

Edit
Wait a moment, there are actually client side hook scripts in TortoiseSVN. You can probably add a "start commit hook" that runs svn add * in the desired folder.

这篇关于自动将文件添加到特定文件夹内的 SVN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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