Skip to content

Tagging Commits (git tag) ​

bash
git tag [tagname] [commit ID]

git tag

Lists all tags in the project directory

git show [tag name]

Shows the commit connected to each tag

Summary ​

CommandWhat it does
git tag [tag name] [commit ID]Attach a tag to a specific commit
git tagList all tags
git show [tag name]View the commit connected to a tag

Reference: personal Notion study notes (Git study)