Git email notifications on pushing tags

In git, I am able to receive email notifications whenever I commit and push some changes. I have a post receive hook configured for this.

Is there any way to receive email notifications when a new tag is pushed to the remote repo, i.e.:

  • You have not concluded your merge (MERGE_HEAD exists)
  • Replace working copy of git repo with actual contents of repo in .git?
  • Fix permissions with git post-merge
  • GitHub: Accept Pull Request, But Only Some Commits
  • Gerrit push not working. Remote rejected, prohibited by gerrit
  • “Heroku push rejected, no Cedar-supported app detected” when trying to upload a Sinatra app with an existing git repo
  • git push origin <tag>
    

    Thanks!

  • Best way to store large csv files with a git project
  • Why can't ssh establish “the authenticity of host” for Github?
  • How can I ignore a directory when doing a Git bisect?
  • Git submodule init async
  • git push single file to a remote tracking branch
  • Remove credentials from Git
  • 2 Solutions collect form web for “Git email notifications on pushing tags”

    The post-receive hook gets (on its standard input) a list of all updated refs, which includes new tags. (See also the githooks manpage).

    You can thereby easily get a list of new tags by filtering that input tags for the beginning refs/tags/ part in refname.

    Naturally, you will have you modify your post-receive hook for this.

    git-multimail and its multimailhook.announceList variable do exactly that: send a mail for each new tag in a repository.

    Note: I’m the author.

    Git Baby is a git and github fan, let's start git clone.