How to push a new version of a repository to gitlab

  1. This is assuming you already have a local repo connected to a remote Gitlab repo (see my earlier post here)
  2. Update your README.md and CHANGELOG.md files to record changes made.
  3. Push all changes to main branch of remote repo:
git add .
git commit -m "commit message"
git push origin main
  1. Create a log tag:
git tag -a vX.Y.Z -m "Release X.Y.Z"
  1. 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.