What is the command to create a lightweight tag?
Posted by SamPetr
Last Updated: July 11, 2024
To create a lightweight tag in Git, you can use the following command:
git tag <tagname>
Replace <tagname> with the desired name for your tag. For example, if you want to create a tag named v1.0, you would run:
git tag v1.0
This command creates a lightweight tag, which is essentially a pointer to a specific commit, without any additional information like messages or annotations. If you want to see the list of tags you have created, you can use:
git tag