Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accidently deleted SVN tag

Tags:

svn

tags

I accidentally deleted a SVN tag. Is it possible to recreate this tag easily ?

like image 869
Sascha Möllering Avatar asked Nov 16 '11 14:11

Sascha Möllering


People also ask

What is SVN tag?

Advertisements. Version Control System supports the tag operation by using that concept that one can give meaningful name to a specific version of the code. Tag allows to give descriptive and memorable names to specific version of code. For example BASIC_ARRAY_OPERATIONS is more memorable than revision 4.


1 Answers

A tag is just a copy of the SVN tree at a certain point. You should be able to recreate it in the same way that you created it. eg svn cp trunk tags/my_tag If you need it to be a tag of a particular revision, then you pass in the revision number with -r

Alternatively, you can probably restore the original tag by doing a "reverse merge" on the checkin where you deleted the tag - but that's more complicated. Google for that if you'd like to try it instead.

like image 198
Taryn East Avatar answered Sep 24 '22 02:09

Taryn East