Search code examples
gitgithubrepository

GitHub is not showing contributions to private repos enabled for inclusion on profile


I have been using git through bash commands to push my commits to some of my private repositories. I realized that even after enabling "Include private contributions on my profile" the contributions are not being updated. However, when I add a new file inside the same repositories using github.com, the commits are somehow counted.

Can someone help me to have all commits being acknowledged as contributions.

I use the following commands on bash:

git clone https://github.com/my_username/repo_name.git

git pull origin master

git add file_name

git commit -m "message"

git push origin master


Solution

  • You may check that the email used when committing is included in the email setting at Github.

    This article describes in more details the conditions for contribution.

    This may also be relevant.