Search:

PmWiki

pmwiki.org

edit SideBar

Main / Gittags

Back to git

Using tags

Note <version> is used in these examples for the tag name (<tagname>), such as v1.4 for example.

List existing tags: git tag

Create tag: git tag -a <version> -m "some comment"

Inspect tag details: git show <version>

Tag an older commit: git tag -a <version> <commitchecksum>

Push to remote: git push origin <version> or git push origin --tags

Delete tag locally: git tag -d <version>

Delete tag on remote: git push origin --delete <version>

Checkout (sync) a specific tagged commit: git checkout <version>


Page last modified on September 02, 2020, at 02:17 PM