Getting your commit graph to show everything on Github

This is fairly simple, but for the sake of vanity and the motivation that this little time series graph brings I have to mention it.

github commit graph

I set up git with a fresh repo on my local machine after having set up 2 factor auth for github at work and despaired for a little while with the setup.  But I eventually got through that (A helpful page) only to find that my commits weren’t showing up on my graph even though my commits were showing up in github! I’d authenticated and everything. Instead a ghostly avatar with my name showed up in my activity feed.

As it turns out the commit graph is only updated if Github recognizes your git config user.email!

Simply set it with git config user.email "yourgithubaccountemail@example.com" and all should be right in the world on your next git push and you won’t miss any more little green boxes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s