Automatically add files to SVN inside a specific folder

柔情痞子 提交于 2019-12-30 04:21:06

问题


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.

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.

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/5457410/automatically-add-files-to-svn-inside-a-specific-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!