Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

SVN tag

SVN tag


The version management system supports the tag option. By using the concept of tag, we can give a more meaningful name to the code of a specific version.

Tags, that is, labels, are mainly used for milestones in project development, such as a separate version that can be released at a certain stage of development. 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@runoob:~/svn/runoob01# svn copy trunk/ tags/v1.0

A         tags/v1.0

The above code is completed successfully, and a new directory will be created under the tags directory.



root@runoob:~/svn/runoob01# ls tags/

v1.0

root@runoob:~/svn/runoob01# ls tags/v1.0/

HelloWorld.html  readme

View status.



root@runoob:~/svn/runoob01# svn status

A  +    tags/v1.0

Commit the tag content.



root@runoob:~/svn/runoob01# svn commit -m "tags v1.0" 

Adding         tags/v1.0

Transmitting file data ..

Committed revision 14.