3 ms·
I have only recently discovered (and I am yet to use) this repository on GitHub [1]. GitVersion looks at your git history and works out the semantic ve
by taspeotis 10y ago
I have only recently discovered (and I am yet to use) this repository on GitHub [1].
GitVersion looks at your git history and works out
the semantic version of the commit being built.
[1] https://github.com/GitTools/GitVersion https://github.com/GitTools/GitVersion
- sigmonsays 10y agoyou can also just git tag 1.0.0 and git push --tags. Then when you git describe you get a 1.0.0-###-gHASH where ### is the number of commits past 1.0.0 and HASH is the short hash of the last commit (I think). Its really useful for tracking versions across branches and also always having a unique version which points to an exact commit.