Is there a way to "svn unrevert"?

Ack! I just mistakenly ran "svn revert somefile" with the wrong file name inserted into it. Now my beautifully modified file has disappeared!

I need the svn unrevert command. AFIC there is no such thing. What is the next best way out of this mess?

+3
source share
6 answers

There is no way to reset the cancellation. You can go back because Subversion stores a copy of the source file inside the .svn folder, and when you run the command revert, the backup is copied to the file in your working copy. Subversion does not back up your modified file before it returns, so if you haven't backed it up somewhere, you're probably out of luck.

+6
source

If you use Eclipse or IDEA, they store a local history, and you can use it to restore your changes. I do not think there is another way.

+4
source

Tortoise SVN:

  • , SVN.
  • "" TortoiseSVN.
  • " 1"
  • " "
+3

.

I like File Scavenger.

He hit and missed, but you have a chance to return the file. The less disk activity since removal, the greater your chance.

+1
source

Perhaps he saved the file, as it was before returning under a different name, $ {FILENAME} .orig or $ {FILENAME} ~ or some of them. If it is not, sorry, you are out of luck.

+1
source

Sorry, but this is not possible.

0
source

Source: https://habr.com/ru/post/1768722/


All Articles