I have a number of files I wish to add to subversion. Instead of taking my time and adding each individual one, I decided to be a smart-arse and do a:
svn add *
.. which was a mistake. Is there a way I can 'unadd' everything? There's about 7 files I wanted to add... it's now highlighted an extra 500+ auto-generated files I didn't mean to add!
I haven't committed it yet so hopefully there's a way to undo this!!
Do you have any changes other than the files added? (svn status
will tell you - modified files will show as M
, added files as A
- and svn diff
will show you the details of any changes). If not, then you can just do:
svn revert *
But if you do have changes other than adds, that will remove them!
(Probably worth experimenting on a few files first :-)
You can use
svn rm --keep-local *
All files will be kept as is, without revert. And unadd
for the commit step.
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