Nikita Kazakov
Nikita Kazakov
~1 min read

Tags

When I setup a new development environment, I’ll commit my code to GitHub but the green boxes won’t show my contribution for that day.

Github green boxes.
Github green boxes.

It’s usually because my git email / name is incorrect. The fix is pretty simple. Type the following into the command line:

git config --global user.name  "Your Name"
git config --global user.email  "yourgithubaccountemail@blah.com"

Try to commit and push your code again to see if your contributions are now showing.

Another reason for contributions not showing up is if you’re pushing code to a branch other than master.