Tags mark specific commits as important milestones, usually software versions. They're the basis of GitHub Releases.
# Create a lightweight tag git tag v1.0.0 # Create an annotated tag (recommended, includes message) git tag -a v1.0.0 -m "Release v1.0.0, first stable version" # List all tags git tag # Push tags to GitHub (not pushed automatically!) git push origin v1.0.0 # push one tag git push origin --tags # push all tags # Tag an old commit git log --oneline # find the commit hash git tag -a v0.9.0 a1b2c3d -m "Beta release"
MAJOR.MINOR.PATCH β v2.4.1 MAJOR, breaking change (not backwards compatible) MINOR, new feature (backwards compatible) PATCH, bug fix (backwards compatible)
A GitHub Release is a tagged version of your code with a description, changelog, and optional downloadable files (installers, binaries, etc.).
v1.0.0)