Skip to content

Instantly share code, notes, and snippets.

@mmrwoods
Created January 9, 2012 12:57
Show Gist options
  • Save mmrwoods/1582842 to your computer and use it in GitHub Desktop.
Save mmrwoods/1582842 to your computer and use it in GitHub Desktop.
Generate semantic versioning compatible number from git tags
git describe --tags --match "v*" 2> /dev/null | sed s/-/+build./ | sed s/-/./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment