I've been using this long command:
svn st | awk '/\?/ {print $2}' | xargs svn add
Similarly, to svn rm files I accidentally deleted with normal rm with :
svn st | awk '/\!/ {print $2}' | xargs svn rm --force
I guess I can write a bash function to do these two, but I'd prefer an interactive add/rm like the one git has.
This adds all svn-untracked and -unversioned files in the current directory, recursing through all subdirectories:
svn add --force ./*
Works for me in MacOS 10.6+ and Ubuntu 10+, with svn 1.6+. This does not provide any per-file, user-interactivity; I don't know how to do that.
This will also add svn-ignored files, for better or worse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With