Ralph J. Smit Laravel Software Engineer
Who doesn't love GitHub? And who hasn't their GitHub account cluttered with forked repositories of projects you've long stopped contributing too? Do you want to clean up your account and unfork outdated repositories? Learn how to unfork a GitHub repo the correct way.
How to unfork a repository
Unfortunately, GitHub doesn't offer an Unfork repository button. Unforking is a manual process which needs to be done by a GitHub employee. But because of the large demand for unforking or detaching repositories, GitHub has built a special chatbot to enter your request. Luckily, the GitHub team performs unfork requests very fast, so it's very likely that it takes only a few minutes to half an hour.
How to detach/extract a GitHub repository
Go to support.github.com/request (or go to GitHub.com and click Contact GitHub in the footer).
Click Attach, detach or reroute forks.
In the Subject field, typ 'Unfork'. A blue banner should appear with 'Our virtual assistant can help'. Click the banner.
A chat should appear on screen with the Virtual Assistant. Paste the URL of the repository.
_Note: make sure to paste the URL to the forked repository, so not the original repository. It should look like github.com/username/forked-repo-name.
Specify what should be done with Child forks:
username/forked-repo-namehas child forks, what should we do with these?
Commonly you'll want to bring the child forks along with you when detaching your fork from the upstream repository.
- Bring the child forks with the repository
- Leave the child forks behind
Select one of the options and send the form.
Within a few minutes to half an hour you should get a confirmation in your e-mail.
Now you've successfully unforked a GitHub repository! The repository stays in your account as a personal repository, without ties to the original repository.
Using the GitHub virtual assistant to unfork a GitHub repo.
The GitHub assistant to unfork a repository.
What is GitHub forking?
GitHub is a great tool for developing software. Millions of developers and companies build, ship and maintain their software on GitHub. If you've used GitHub for a while, you may find yourself wanting to contribute to someone else's project. Or you would like to use an other project as a starting point for your own project. GitHub makes this really easy by allowing you to fork other people's projects. But what about unforking?
If your project is finished or if you've made your contribution, the forked repository will still be shown in your account as 'forked from X'.
Published by Ralph J. Smit on in Github. Last updated on 22 February 2023.
Like what you read?
Get notified when I publish something new, and unsubscribe at any time.