Good Code
The good version verifies the working tree, runs tests, checks the exact commit, creates an annotated version tag, and pushes only that tag.
Lesson 10
Create intentional annotated tags for release points after verifying the exact commit that should ship.
# Verify the exact commit before creating the release tag.
git status --short --branch
npm test
git log --oneline --max-count=1
git tag -a v1.4.0 -m "Release v1.4.0"
git push origin v1.4.0# Vague tags and bulk pushes can publish accidental release points.
git tag latest
git push --tagsThe good version verifies the working tree, runs tests, checks the exact commit, creates an annotated version tag, and pushes only that tag.
The bad version creates a vague moving name and pushes every local tag, including tags that may not be ready to publish.