I'm working on a Rails app with SVN. I just ran 'svn up' from within app/assets/javascripts. That resulted in the whole repo being downloaded and copied into app/assets/javascripts, so I then had app/assets/javascripts/app, /lib, /Gemfile.lock, etc. I went ahead and deleted all these files, but now 'svn st' lists them all as locally deleted. I'm used to using Git, so I didn't realise that 'svn up' was sensitive to the current working directory like that. How do I fix this?
If I 'svn rm' them all and then commit, will this mess up the remote repo?
If you deleted files on your working copy that are tracked by
svn, you can undelete them by callingIf you want to restore all files that were accidentally deleted in your svn directory, this one-liner will do the trick for you:
Generally, the
revertsubcommand will always restore your local files to the state of their last commit.