Home > front end >  I worked on a private repo in GitHub then made it public. Can I make my activity visible?
I worked on a private repo in GitHub then made it public. Can I make my activity visible?

Time:10-16

I had a private repo for 6 months that I worked on. Today I finally made it public after submitting a paper. Is it possible to make the activity (those green square) visible? I tried clicking on contribution setting and got the message Visitors will now see your public and anonymized private contributions, but the activity still doesn't show.

Update:

I noticed that only changes I did on github (the website rather than pushing code from my machine) were recorded. That is, only the readme file shows as I often updated it on the website.

CodePudding user response:

I noticed that only changes I did on github (the website rather than pushing code from my machine) were recorded.

That means you need to check, from within your local folder of your cloned repository:

git config user.name
git config user.email

Make sure those match your GitHub user account, and GitHub user email.
Then make some new commits, and push: see if the activity is reflected then.

CodePudding user response:

Contributions should still be shown in that case. Here are some of the reasons your contributions might not be being shown:

  • GitHub isn't aware of the email address you used in your commit messages

  • The commit wasn't made in the default or gh-pages branch

  • The repo is a forked repo, not a standalone repo

GitHub also mentions that it will not show commits that were made less than 24 hours ago, so it seems like they have some sort of caching mechanism going on with their contribution graph. It may help to wait 24 hours since you made the repo public, to ensure that cache has a chance to roll over.

  • Related