3

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?

Martin Brisiak
  • 3,473
  • 12
  • 35
  • 49
  • 2
    Duplicate of [Removing contributor from github.com?](https://stackoverflow.com/questions/44563131/removing-contributor-from-github-com) – Guy Incognito Oct 22 '20 at 15:51
  • I can't recreate repo. I also delete all commits. This person is only on main page but not in graphs/contributors (if i press on contributors button). – Anton Emelyanov Oct 22 '20 at 16:09
  • This is not a duplicate[Edit: Actually, it might be a duplicate and all the answers on the other are wrong/incomplete.] - I have the same problem. GitHub seems to cache the list of contributors on the main page and does not remove users from that list even if their commits have been fully purged, as the linked question suggests. However, as this is an obvious problem for privacy reasons when a commit is erroneously made with the wrong account, it seems more like a bug with GitHub than a question for StackOverflow (regardless, this is where I ended up while attempting to find a resolution) – Michael May 17 '21 at 06:26
  • I indeed mixed my private and company accounts for a commit and even after removing it from the history, the erroneous account is still listed as contributor. – Booster2ooo Jul 25 '21 at 20:18

1 Answers1

-1

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.

asinduvg
  • 47
  • 9