VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Pushing Commits to Github does not reflect as contributions (Green box) to the Profile.

Open sandipanaich opened this issue 4 years ago • 11 comments

Versions

  • Git client version: git version 2.21.0.windows.1
  • IntelliJ version: Ultimate 2020.2 ()

What happened

I have been pushing my code commits to github, but it doesn't show up to my contributions. For example, none of my code push result in highlighting the corresponding date with the small green box (Please refer to the screen shot) Few things which I checked before raising this ticket are:

  • I have starred the repo to which I am pushing my code changes.
  • This repo is not forked.
  • I have also checked the UTC and IST time difference, both are 25th November.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a repo
  2. clone the repo to your desktop.
  3. Make some code changes and push you code every day for, say, a week
  4. You'll be able to see that for some days, the commits are not reflected.
  5. I also waited for quite a long time, but the my contributions did not reflect.
  6. My issues is similar to https://github.com/github/VisualStudio/issues/631, but I could not find a proper solution in that thread.
  7. I also went through this document, I am following all the requirements for a proper contribution update. https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-your-github-profile/why-are-my-contributions-not-showing-up-on-my-profile

Expected behavior

It would be great if I commits re reflected as an when I push my code commits.

Screenshots

1 2 3

Logs

Additional context

sandipanaich avatar Nov 25 '20 14:11 sandipanaich

Okay, my changes for today just got reflected. I don't have any clue why it happened only after I raised this Bug :-) . But, I would request to check this issue because my contributions on 18th and 22nd of November are also not reflecting.

sandipanaich avatar Nov 25 '20 14:11 sandipanaich

Same here

fatemehmarzoughi avatar Nov 06 '21 15:11 fatemehmarzoughi

I think I was able to figure it out. You need to create an Issue entry on GitHub for which you are making the code changes. While pushing your code, make sure mention "Close #". That would do 2 things.

  1. Mark the issue as closed.
  2. Add the green box reflecting your code push.

sandipanaich avatar Nov 07 '21 03:11 sandipanaich

just experienced same problem and solved by changing my primary email on github > settings> emails. Now i can see greenboxes without creating or closing an issue. @sandipanaich @fatemehmarzoughi

See: https://medium.com/@soufianerafik/commits-not-showing-up-on-github-contributions-graph-c3b539ad42a1

vrlelif avatar Aug 27 '22 20:08 vrlelif

I am also facing the same issue, I am using IntelliJ Idea and I have connected my GitHub account. I am creating a Java Project and I am committing the changes form compiler every day and Pushing the commits but the green box is not reflecting. Kindly help me with this issue. @vrlelif @sandipanaich

SparshBisen avatar Feb 25 '23 07:02 SparshBisen

same here

Ehsanrezazadeh1 avatar Mar 18 '23 10:03 Ehsanrezazadeh1

I am experiencing the same when pushing commits using VS Code. I can confirm my primary email on github matches the one in my local.

jsph-lm avatar Mar 21 '23 10:03 jsph-lm

✔SIMPLE FIX :( Step first check your email id same as your email present in your github profile by going ( github > settings> emails. ) You can type in your terminal git config --global user.email [email protected]

But this is not my email which is present on my git hub profile profile so i change it by typing git config --global user.email "YOUR_GITHUB_EMAIL_ADDRESS"

Now, both addresses should match. Run the command below to confirm that you have set the email address correctly in your local Git: git config --global user.email

tinkugupta5 avatar May 15 '23 20:05 tinkugupta5

My email is configured correctly, I am pushing to the master branch and it still doesn't show a green square.

andrew-debyl avatar May 18 '23 20:05 andrew-debyl

same thing is happening for me, what should I do and how can raise the issue. I just Started the github journey few days back only.

omjbhaleraowork avatar May 24 '23 13:05 omjbhaleraowork

I was facing the same issue but upon checking my email, I realised there was a discrepancy and although it did resolve the issue for new commits, I'm still unable to see any old commits in the contributions graph. Any help?

sanchitarorra avatar Jun 12 '23 15:06 sanchitarorra