Monday, March 17, 2008

The tag Command

The tag command enables you to specify a tag name to a revision made to a file or a project. A tag bookmarks the state of a project at the time it was assigned to the project. When used with the –b command option, it creates branches in the repository.

For example, to create a new branch with the new_branch tag in the repository module, my_project, the syntax is:

$ cvs tag –b new_branch my_project

You can delete a tag using the –d command option. Using the –c command option, you can check if a current working file has changed, but a commit has not been invoked. CVS exits with an error and tags are not created.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home