GitHub repository: zhuangya/git-rev
Description: Synchronously get the current git commit hash, tag, or branch