Git Tags
- Command 1: List tags
git tag
Description
List all tags
- Command 2: Add new tag
git tag NAME
Description
Adds a new tag to a commit.
Fails if tag already exists.
- Command 3: Delete a local tag
git tag -d NAME
Description
Delete a tag locally.
Fails if tag doesn't exist.
- Command 4: Delete a remote tag
git push origin --delete NAME
Description
Delete tag from remote.
- Command 5: Push tags to remote
git push --tags
Description
Pushes tags to remote.
Without flag, tags are not pushed to remote.