Can I have TortoiseSVN auto-add files?

人走茶凉 提交于 2019-12-08 16:21:59

问题


Is there a way to have TortoiseSVN (or any other tool) auto-add any new .cs files I create within a directory to my working copy so I don't have to remember which files I created at the end of the day?


回答1:


I would probably make a batch file, something like this (untested):

dir /b /S *.cs > allcsfiles.txt
svn add --targets allcsfiles.txt

I believe svn won't mind you trying to add files which are already versioned..

Anyway, that's probably about as automatic as you will easily get.




回答2:


If you just commit your working copy, you'll get a file list showing you your unversioned files, which you can tick to add as you commit. You don't have to add them explicitly before you commit.




回答3:


svn add --force --auto-props [Path to check in]

Worked ok for me.

-Jet




回答4:


Yes, you can add a bat file to svn (on the installed server) so that anytime you update a particular branch, that change get mimicked.. I believe its called hooks...

I hope this is what you meant.



来源:https://stackoverflow.com/questions/50737/can-i-have-tortoisesvn-auto-add-files

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