DEV Community

Why are my commits aren't showing up on GitHub contributions graph?

Bhavesh Kasturi on June 27, 2020

So recently, I started using GitHub after building projects & after pushing my code on GitHub I was having an issue with my contributions gra...
Collapse
 
luizhlelis profile image
Luiz Lelis

An important thing to pay attention is that commits will appear on your contributions graph when made in the default branch. If you're developing in different branches, then graph will only update when the branch is merged on the default branch (the commits will appear according to the commit date, independently on the merge date).

Collapse
 
sayandcode profile image
sayandcode

Damn that's the critical part! I thought my email must have changed, but it's just me working on a feature branch! Thanks (y)

Collapse
 
luizdcastro profile image
Luiz Castro

Helpful article, just to add in case you are not using GitHub desktop, you also can set your commit email address by command line.

$ git config --global user.email "email@example.com"

$ git config --global user.email

docs.github.com/en/free-pro-team@l...

Collapse
 
duhbhavesh profile image
Bhavesh Kasturi

This is Great! Thanks :)

Collapse
 
karthiknayak98 profile image
KarthikNayak

But it the Github doc it is mentioned that if we commit to the forked repo and then open a pull request and it gets merged to the parent repository then those commits will show up in our contribution graph. But it is not showing. What might be the issue?

Collapse
 
helixhex profile image
Elias Wambugu

The script you linked doesn't seem to load

Collapse
 
duhbhavesh profile image
Bhavesh Kasturi

Hey Elias! Thanks for informing, I think that article has been removed from the docs. You can refer to this stackoverflow answer. It has the script.

Collapse
 
charlesfries profile image
Charles Fries

The commits were made in a standalone repository, not a fork.

Why on Earth is this a rule?

Collapse
 
uvro profile image
Suvraneel _Saha

yes , i was also facing the same issue not knowing like a clown that commiting to a forked repo will not show up in the contribution graph haha lol

Collapse
 
uvro profile image
Suvraneel _Saha

I was commiting in a fork even though it was showing in the forked repo page , but not in the contribution page , so LOL 😂

Collapse
 
adityasimant profile image
Aditya simant

thanks alot