Synopsis: tag [OPTIONS] TAG [FILES]
- Alternate names – ta, freeze
- Requires – Working copy, repository
- Changes – Repository
Attaches a name to a particular revision or collection of revisions for
a project. Often called "taking a snapshot" of the project. This
command is also used to create branches in CVS. (See the -b option –
see also rtag.)
- -b – Creates a branch named TAG.
- -c – Checks that the working copy has no uncommitted changes. If it
does, the command exits with a warning, and no tag is made.
- -D DATE – Tags the latest revisions no later than DATE.
- -d – Deletes the tag. No record is made of this change; the tag simply
disappears. CVS does not keep a change history for tags.
- -F – Forces reassignment of the tag name, if it happens to exist
already for some other revision in the file.
- -f – Forces to head revision if a given tag or date is not found. (See
-r and -D.)
- -l – Local. Runs in the current directory only.
- -R – Recursive. Descends into subdirectories (the default). The -R
option exists only to counteract a -l in .cvsrc.
- -r REV – Tags revision REV (which may itself be a tag name).