Alex Rivera | Logout

svn update is not updating!

Asked 2009-05-08T15:51:16.857
30

I want svn update to overwrite my local file with the files from the server, even if my local files have modifications, I want to throw them away and use the version that's on the remote repository.

How do I do that? I tried svn update --force but it doesn't work.

Update:

Thanks for the answers, so I'm using revert like this:

svn revert . -R

Is this how I'm supposed to use it? is it safe? I have a git repository in the same pace and I don't want svn to corrupt my .git for me!

svn
Edit
Report

2 Answers

37

You should use SVN revert. This would revert the files in your working copy to their original state. For more information and examples check the svn book here: http://svnbook.red-bean.com/en/1.1/re25.html

answered 2009-05-08T15:54:03.137
2

Use this line:

svn revert -R .;svn up
answered 2011-03-30T10:13:18.683

Your Answer