Deriving application build version from `git describe` - how to get a relatively straightforward string?
UPDATE I see that this question has become somewhat popular. It's now years into my admittedly enjoyable Git use, and I have learned a lot since then. Please , pretty please read the last paragraph before going on about your Git adventures with whatever you will have learned from this Q&A. I want to compose application build version that is automatically derived from GIT branch name I am on (when building) and the number of commits since the branch has diverged. I believe this will be unique for any commit in my GIT repository? Branch names are unique, and commits are linked to each other