Randomly deleted SVN tag

I accidentally deleted the SVN tag. Is it easy to recreate this tag?

+4
source share
3 answers

A tag is simply a copy of the SVN tree at a specific point. You should be able to recreate it the same way you created it. e.g. svn cp trunk tags/my_tag If you need it to be a specific revision tag, then you pass the version number with -r

Alternatively, you can possibly restore the original tag by performing a “reverse merge” in the checkin where you deleted the tag, but this is more complicated. Google if you want to try.

+4
source

If you use the command line, the typical method is "reverse merge". For example, if version 125 was a validation entry that removed the tag directory, you would run the command as follows: svn merge -r 125:124 . Subversion will pull the previous version with the tag from the history into your working copy. After that, you can make a commit to commit the change.

+1
source

You cannot cancel. You can re-create the same tag that copies the same revision from the trunk and gives it the same name.

0
source

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


All Articles