You can try and use git tags.
Also add the following alias to ~/.gitconfig:
release = !git tag -a release-$(git tag -l "release-*"|wc -l|sed 's/ //g')-$(git symbolic-ref --short HEAD)-$(git rev-parse HEAD)
You will create an annotated tag in this form:
release-<release number>-<branch name>-<commit hash>