Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Last active November 29, 2015 15:24
Show Gist options
  • Save aalvesjr/b550392b9847f6007e84 to your computer and use it in GitHub Desktop.
Save aalvesjr/b550392b9847f6007e84 to your computer and use it in GitHub Desktop.
Git Basics - Tagging

GIT Tagging

Listing Your Tags

git tag
# or with filters
git tag -l "v1.*"

Creating Annotated Tags

git tag -a v1.0 -m "text about release"

Creating Lightweight Tags

# don’t supply the -a, -s, or -m options
git tag v1.4-lw

Show tag details

git show v1.0.0

Tagging Later

git tag -a v1.2 <commit checksum "9fceb02">

Sharing Tags

git push origin v1.5

Checking out Tags

git checkout -b version2 v2.0.0

Fonte https://git-scm.com/book/en/v2/Git-Basics-Tagging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment