Skip to content

[Solved] Submitting GitHub but Contribution Activity does not show (Used by IDE)

Today when I used the Python IDE PyCharm to submit the changed code to GitHub, I found a serious problem:

Since January, I should submit updated project code every day. I wrote different desktop tools, such as timer to calculate how long it takes to write a blog article, such as desktop clock because I am used to switch to the desktop to watch time ...... and something the weather crawler program.

The way I submit has always been through shortcuts provided by IDEs such as PyCharm and Intellij. However, I submitted it in the same way before, and the contribution activity is also displayed normally. It should not be a problem with the IDE.

Besides, it is unlikely that two IDEs will have the same problem at the same time.

Finally, I confirmed the earliest time when the problem occurred, and I found that it was after I reinstall my laptop. Then, it may be a problem with Git in my computer.

The parts that are displayed are all logged in normally. I have an avatar, but the latter part is not displayed on the contribution activity, all of which are email accounts without a avatar.


Solution

First open the terminal and reset the git info.

git config --global user.name <username>
git config --global user.email <mailaddress>


After setting, you can use the following command to view the current setting:

git config --global --list

If it is set, there will be no problem if I submit it again.

Tags:

Leave a Reply