(created/git2cpp/tag.md)=
# git2cpp tag

```{parsed-literal}
Create, list, delete or verify tags


git2cpp tag [OPTIONS] [&lt;tagname&gt;] [&lt;commit&gt;]


POSITIONALS:
&nbsp; &lt;tagname&gt; TEXT              Tag name
&nbsp; &lt;commit&gt; TEXT               Target commit (defaults to HEAD)

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp; -l,     --list              List tags. With optional &lt;pattern&gt;.
&nbsp; -f,     --force             Replace an existing tag with the given name (instead of failing)
&nbsp; -d,     --delete TEXT       Delete existing tags with the given names.
&nbsp; -n INT                      &lt;num&gt; specifies how many lines from the annotation, if any, are
&nbsp;                             printed when using -l. Implies --list.
&nbsp; -a,     --annotate          Make an annotated tag.
&nbsp; -m,     --message TEXT      Tag message for annotated tags
```
