Can I avoid required svn add [dir] on branch?
SVN seem to require me to run
s开发者_运维知识库vn add [dir]
if I add a directory in local branch (and whats it to be versioned). Can I make SVN more clever than this default behavior?
Or is the easiest approach to run
svn add .
in project root before any commit?
regards, //t
edit:
svn add --force ./*
that is..
Subversion will not track a file unless you instruct it to. That's by design and I think it's a good design: it sounds more intuitive to select stuff you want into version control (something that needs to be done once) than to un-select stuff you don't want (which you'd possibly need to do on every commit ever).
Said that, you might feel more comfortable with a GUI tool since most graphical clients allow to add and commit in a single step.
精彩评论