Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receiving emails on GIT push

Tags:

I am used to subversion, where the collaborate group would receive an email whenever someone commits. Is there a similar feature on GitHub, so the people working on the repository receives an email whenever a user pushes their changes?

like image 740
Dofs Avatar asked Aug 10 '11 17:08

Dofs


People also ask

Does git push do a fetch?

The git push command is used to upload local repository content to a remote repository. Pushing is how you transfer commits from your local repository to a remote repo. It's the counterpart to git fetch , but whereas fetching imports commits to local branches, pushing exports commits to remote branches.

Can people on GitHub see your email?

Yes, your email address (as specified in git config user. email ) will be visible in web interfaces like GitWeb.

How do I turn off email privacy on GitHub?

Head to the Settings section of GitHub, and then select the Emails menu item. In here, you'll find a checkbox labeled 'Keep my email addresses private'. Within the description for this label, you'll find your GitHub noreply address.


2 Answers

Here is the simplest solution I've found:

1) Log in to your gitHub account on github.com

2) In the main tab click on Settings

3) From the main navigation of Services find Email and click it

4) Fill in your email address in field Address

5) Check the checkbox Send from Author

6) Check the checkbox Active

7) Click on Update Settings

Optional: You can click on Test Hook for testing, check your inbox you should receive email. -> Will become available when you finish Update Settings in step 7)

Also there are images made according to the process:

enter image description here

enter image description here

enter image description here

And now for the grand final I have the answer which is tested and approved at my side.

How to send email to ALL development team members, when gitHub's Service Hooks->Email allows only at most 2 recipients }.

The answer is combination of Service Hook->Email @ GitHub && Google groups

  1. First login to your google account
  2. Go to Google Groups and at the top click on Create Group
  3. Type in Group Name, Group email address (will copy/paste into GitHub Service Hook->Email Address), Group description
  4. After that hit Create button at the top, your new group should be created now
  5. After that in the menu to the left hit Invite members and type in the email addresses of your team mates
  6. After that hit Send invites (when your members accept invitation) they are now formally members of this group
  7. In the menu on the left click on All Members and check the 4th column called Delivery, every team member should have option All Email.
  8. After that I would like to credit Mr. Clement Escoffier and please do follow his guidelines @ Clement Escoffier::Send Github commits to a Google Group on how to finish it. {Thank you Clement :)}
  9. If the link becomes unavailable here is another link to my gDocs @ PDF version of Clements guide

2018 update: github will discontinue this service in Oct 2018

like image 185
Matija Avatar answered Feb 26 '23 18:02

Matija


You would use a post-hook, check out info at:

http://help.github.com/post-receive-hooks/

http://wiki.webhooks.org/w/page/13385124/FrontPage

There is a posthook named "Email", it only accepts one email address to send to, but it could be a distribution list.

like image 25
Tim Hoolihan Avatar answered Feb 26 '23 19:02

Tim Hoolihan