I made 3–4 commits on a single day to my repo using the Mac client for GitHub but the contributions section on my profile page doesn't update itself with changes in varying shades of green.
Why does this happen?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityI made 3–4 commits on a single day to my repo using the Mac client for GitHub but the contributions section on my profile page doesn't update itself with changes in varying shades of green.
Why does this happen?
There are several possibilities:
You have not pushed your commits up to Github. Unlike centralized version control systems, committing it git is done locally. When you have made commit(s) locally and want to synchronize your Github project page, you need to run 'git push' to send the commits upstream.
Your commits were not on the default branch (usually master
) of a project. Other branches won't count towards the total until they are merged.
Your repository is a fork. In this case only commits that have been contributed upstream and merged into the master branch are counted.
Your commit was made with an email address other than ones you have told Github about.
You haven't waited long enough. The graph is not updated instantly.
See Github's help section Why are my contributions not showing up on my profile? for more tips.
Had same problem, mine was fixed by setting the email
git config --global user.email [email protected]
Hope this helps.
You need to click on the Push option in GitHub for Mac so that the commits gets live on GitHub. Also, it might take a short little while before the contributions page gets updated to reflect your recent pushes.
Some repos only show 'Contribution Activity' for commits that have been merged into master, (although this may not apply in your case if you own the repo and are the only commiter).
If the commits are pushed but still not showing up in 'Contribution activity' on the days they were committed, then this may be because you made a pull request but your changes haven't been merged yet.
You can also check the email settings associated to your Github account as GitHub will not credit you with contributions made under a different account that is registered to your profile. I noticed the email associated with my account was an older email, so I added my current email address and set it as my "Primary" address. I refreshed my account and saw my contributions updated. Good luck!