Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get email diffs for GitHub pushes?

Tags:

Has anyone come up with a good way to get emails when commits are pushed to your GitHub repo -- that includes a diff of files changed?

(I know they have an Email Service Hook - but that doesn't include a diff)

Mega bonus points if the diffs are colorized with inline CSS that's viewable in Gmail.

like image 556
philfreo Avatar asked Nov 18 '10 02:11

philfreo


People also ask

How do I create a diff on GitHub?

On the Github, go to the Source view of your project. You will see a link named 'Branch List'. Once the page opens you can see a list of all the remote branches. Hit on the Compare button in front of any of the available branches to see the difference between two branches.

How do I manage email notifications from GitHub?

In the left sidebar, under the list of repositories, use the "Manage notifications" drop-down to click Notification settings. Under "Default notification email", select the email address you'd like notifications sent to. Click Save.

Can you have multiple emails on GitHub?

GitHub allows you to add as many email addresses to your account as you like. If you set an email address in your local Git configuration, you will need to add it to your account settings in order to connect your commits to your account.

How do I see emails in GitHub?

The first step is to access your account settings by going to the top right corner, and then Settings. In your account settings, go to the Emails option, and uncheck the Keep my email address private option.


1 Answers

I've written a small WebHook that exactly fills this gap: gitdub. It leverages git-notifier to send one email per commit.

like image 62
mavam Avatar answered Nov 18 '22 04:11

mavam