Skip to content

Instantly share code, notes, and snippets.

@textarcana
Last active April 17, 2025 21:15
Show Gist options
  • Save textarcana/e102443724aaa4053859b3540c5100c1 to your computer and use it in GitHub Desktop.
Save textarcana/e102443724aaa4053859b3540c5100c1 to your computer and use it in GitHub Desktop.
bump minor version number on the latest git tag
# Bump the minor version of the git tag assuming the version tags are formatted like v0.0.0
git tag v$(( $(git tag | sort -V | tail -n1 | cut -d. -f1))).$(( $(git tag | sort -V | tail -n1 | cut -d. -f2))).$(( $(git tag |
sort -V | tail -n1 | cut -d. -f3) + 1)) -m 'Bump minor version from v1.2.3 to v1.2.4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment