31,040
edits
| Line 168: | Line 168: | ||
To add a tag to a current version: | To add a tag to a current version: | ||
<source lang="bash"> | <source lang="bash"> | ||
git tag | git tag -a "x.y.z_YYYYMMDD" -m "Tag for x.y.z_YYYYMMDD" | ||
git push --tags | or | ||
git tag -f -a "x.y.z_BETAX_YYYYMMDD" -m "Tag for x.y.z_BETAX_YYYYMMDD" idcommit # -f force if an existing tag already exists, idcommit allows to choose commit to tag | |||
git push --tags # To push tags to remote origin | |||
</source> | |||
To remove a tag: | |||
<source lang="bash"> | |||
git tag -d "x.y.z_YYYYMMDD" | |||
git push origin :x.y.z_YYYYMMDD # To validate delete on remote origin | |||
</source> | </source> | ||