3 rev=$(git rev-parse HEAD)
4 ref=$(git for-each-ref 'refs/tags' --format='%(refname)' --sort=taggerdate | tail -n1)
5 last_tag=${ref#refs/tags/}
11 set -- $(git describe --tags)
17 Making tag: $tag at revision $rev
19 You probably want to fill git shortlog from last tag $last_tag as annotated tag message:
21 git shortlog $last_tag..HEAD
23 Press ENTER to continue, Ctrl+C to abort
27 git tag -a "$tag" $rev
33 git push origin "refs/tags/$tag"