Skip to content

Instantly share code, notes, and snippets.

@EngEryx
Last active July 2, 2020 17:42
Show Gist options
  • Save EngEryx/b7c273253ee59744ec112abe79a27059 to your computer and use it in GitHub Desktop.
Save EngEryx/b7c273253ee59744ec112abe79a27059 to your computer and use it in GitHub Desktop.
# Install git-semver https://github.com/hartym/git-semver
pip install git-semver
# Cd to your cool project
cd semver101
# Assuming it's the first time with tags
git tag -am 0.1.0 "Cool project's version 0.1.0"
# Checkout tags with git-semver, she's your new magic wand from now on
git semver
# After a long time, makes cool and annoying changes...
## Patches
git semver --next-patch
## Minor
git semver --next-minor
## Major
git semver --next-major
# That's all, got get some coffee!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment