I accidentally deleted a SVN tag. Is it possible to recreate this tag easily ?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With