SVN Tags


Version control systems support the tag option. By using the concept of tags, we can give a more meaningful name to a specific version of the code.

Tags, i.e. labels, are mainly used for milestones in project development. For example, when development reaches a certain stage, a separate version can be released. It often represents a fixed, complete version, which is roughly the same as the Tag in VSS.

We create a tag in the local working copy.

root@example:~/svn/example01# svn copy trunk/ tags/v1.0
A         tags/v1.0

If the above command completes successfully, the new directory will be created under the tags directory.

root@example:~/svn/example01# ls tags/
v1.0
root@example:~/svn/example01# ls tags/v1.0/
HelloWorld.html  readme

Check the status.

root@example:~/svn/example01# svn status
A  +    tags/v1.0

Commit the tag content.

root@example:~/svn/example01# svn commit -m "tags v1.0" 
Adding         tags/v1.0
Transmitting file data ..
Committed revision 14.
Other extensions