Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion 'unadd'?

Tags:

svn

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!!

like image 876
Federer Avatar asked May 21 '10 14:05

Federer


2 Answers

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 :-)

like image 60
psmears Avatar answered Sep 24 '22 02:09

psmears


You can use

svn rm --keep-local *

All files will be kept as is, without revert. And unadd for the commit step.

like image 31
user965252 Avatar answered Sep 22 '22 02:09

user965252