'Combine gitlab heatmap commit with github account

I have been using my university private gitlab for a while. I have a lot of commit that can be shown like this Gitlab commit

I cannot give the link to my gitlab to potential recruiter. So I decided to create a github and put my repositories there.

On my github I create a new repo and locally I just do:

git remote add origin2 [email protected]:mylogin/new_repo.git

git branch -M main

git push origin2 -u main

I can see the commit inside the repo, but on my github heat map it is showing as one big commit. I want it to show all my previous commit inside my github.

I don't know if it possible. Please help.



Solution 1:[1]

I think maybe you see on Github is not commit, it is a event that you join Github.

Just like: enter image description here

Accroding to docs:

Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.

So, you can add email address which you commit on Gitlab to your Github account. After this, the contributions will be counted and shown.

Follow this guide to set up your commit email address on Github: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-user-account/managing-email-preferences/setting-your-commit-email-address#setting-your-commit-email-address-on-github

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 hms5232