DEV Community

Cover image for Developer diary #10. Lost contributions
Kiolk
Kiolk

Posted on

Developer diary #10. Lost contributions

On the start of my carrier, I practiced challenge one hundred days of coding. During this time, I tried to add at least one commit in my repository.  It were pet projects, scripts or bugfixes in open-source projects. The GitHub contribution diagram helped to keep tracking this process and played the role of achievement and satisfaction, when you saw all green squares. 

Last time, when I went to check my diagram after last push, I found that all squares are grey.What is going on? After short investigation, I found several reasons why it happens. 

First, I committed under my work email, because it was set up globally. You can faster fix it by just adding new email to your profile. Unfortunately, It didn't work for me, because I have a work GitHub account registered to this email. Simplest solution is just setup required email for concrete repository. You can do this by command

git config user.email "your_email@gmail.com"

Second, GitHub tracks only commits in default branch.  It is not problem, because you get back your contributions after marge in default branch. I think, it is not work in case when merge with squash. More about counting contributions, you can find in documentation.

I want to back to contribution challenge to make daily routine more enjoyable. If interesting, you can check my repo here and don't forget to add some stars for me.

Sentry mobile image

Tired of users complaining about slow app loading and janky UI?

Improve performance with key strategies like TTID/TTFD & app start analysis.

Read the blog post

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay