Remove contributors from the contributors list? #49813
Replies: 9 comments 25 replies
        
          
            
              This comment was marked as off-topic.
            
          
            
        
      
    
            
              This comment was marked as off-topic.
            
          
            
        -
| Hello zielony12!If your friend is no longer a collaborator on your GitHub repository and their code has been removed, they should no longer appear on the contributors list. However, if you are still seeing their name in the contributors list, it's possible that their contributions are cached by GitHub and will be removed over time. If you want to remove a specific contributor from the contributors list immediately, you can do so by manually editing the repository's Git history. Here are the general steps to follow: 
 Note that modifying the Git history of a repository can be a complex and potentially risky operation. Make sure you have a backup of your repository before attempting these steps. Good luck! | 
Beta Was this translation helpful? Give feedback.
-
| Hello, check this documentation out: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/removing-a-collaborator-from-a-personal-repository#removing-collaborator-permissions-from-a-person-contributing-to-a-repository If you found this resource as helpful "mark as answer" | 
Beta Was this translation helpful? Give feedback.
-
| In my case, I pushed a commit with a different account, removed that commit, but the other account remained in the contributors list on GitHub, despite having 0 commits in the project history. Switching the GitHub repo from 'public to private' and then back to 'public' was the only solution that worked for me as of November 2023. | 
Beta Was this translation helpful? Give feedback.
-
| To remove a contributor from the contributors list on GitHub: Go to your repository. | 
Beta Was this translation helpful? Give feedback.
-
| Restoring the default branch name after changing it, while ensuring no other contributors have made commits to the branch, is valid. | 
Beta Was this translation helpful? Give feedback.
-
| If that contributor do not have commits ( or you will need to change commit author ) Then clone repository locally, delete repository using web, create new one and make push from local repository. | 
Beta Was this translation helpful? Give feedback.
-
| 🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as  2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the  Thank you for helping bring this Discussion to a resolution! 💬 | 
Beta Was this translation helpful? Give feedback.
-
| Perfect Method I FoundAll the answers before is telling you to rewrite the commit history, and change the branch name back and forth. However, there is a much easy solution for this, You WON'T need to rewrite anything in your repo. Just go to Account Settings of your GitHub account, and block the account you want. You can unblock the account later. At the moment you will still see the contributor showing on the list, but the number of contributors will be reduced by one. After a few hours or a day, you will see that the contributor is no longer showing in the list. Side-effect: The account you block will be disappeared from all the repo owned by you. | 
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
My friend was in my repo but now he isnt, there is no even his code anymore (overwritten by git commit -f) and he is not a collabolator. How do i remove him from the contributors list?
Beta Was this translation helpful? Give feedback.
All reactions