How to push a new version of a repository to gitlab
- This is assuming you already have a local repo connected to a remote Gitlab repo (see my earlier post here)
- Update your README.md and CHANGELOG.md files to record changes made.
- Push all changes to main branch of remote repo:
git add .
git commit -m "commit message"
git push origin main
- Create a log tag:
git tag -a vX.Y.Z -m "Release X.Y.Z"
- Push local tag to remote repo:
git push origin vX.Y.Z
Semantic Versioning (SEMVER)
- Guidelines and Principles for creating versions
- MAJOR.MINOR.PATCH -> v1.3.1
- MAJOR: Increment when you add a change that purposefully causes something to work differently or causes the user to have to use it differently.
- MINOR: “Backwards Compatibility” additions like new features or functionalities.
- PATCH: Bug fixes.
You can read more about SIMVER here.