See the Git Version - Example This is an example project to show how to use https://github.com/boon-code/c-git-version.