Use Semantic Versioning (SemVer) with the format MAJOR.MINOR.PATCH:
- MAJOR: Incompatible API changes
- MINOR: Backward-compatible functionality
- PATCH: Backward-compatible bug fixes
Example: v1.2.3
-
Create an Annotated Tag:
git tag -a v1.2.3 -m "Release version 1.2.3"
git tag v1.2.3git push origin v1.2.3