问题
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