Remove contributor from main page of github repo

Viewed 2053

On main page of repo we have 2 contributors.

enter image description here

I delete all commits (one :)) of bottom user. On page /graphs/contributors we can see 2 contributors. How remove one from main page of git repo?

2 Answers

It seems like GitHub indeed cache the contributors list, at least for a couple of hours.

I had the same problem and did the following:

  1. Changed all commits emails (two) that pointed to the other account using git-filter-repo tool, like this.

  2. Follow the suggestion of renaming the branches, main -> main1 -> main (didn't work, at least not instantaneously).

  3. Returned to the repo about two or three hours later and it was correct.

In retrospect, perhaps the first point alone would do the trick.

Go to repository settings and follow this path, Settings -> Branches and rename default branch to something else like main1. Then follow the same steps and rename the branch back to main.

Related