- Updates your version file (it will not create one since this operates upon working directories and that'd be weird)
- Adds the version tag to the commit to enable automatic release detection (you will need to push tags)
- Have a
versionfile in your working directory - Install the package:
$ go install github.com/jredhooper/version - Execute the command against your repo or add it to your githook
- Usage:
$ version -help
Note: In order for this to work properly you need to push tags as well. To do this you can either
git push --follow-tags
or enable it permanently
git config --global push.followTags true