Sometimes you fork a repository abandoned by its author and decide to give it a second life.

I did that for this repository

The principle of fork is great in theory we can still merge our changes upstream. But in this case, it was just a pain:

Each time I opened a new PR for my own repo it opened a PR by default to the original forked repo (abandoned). I manually had to define another target each time (Imagine if contributors of the new repo get to this mistake too.. their PR will never appear to my project…)

GitHub does not provide at this time an out-of-the-box solution to specify some default target repositories at the moment. But there is a solution!


Use the GitHub chatbot-virtual-assistant at

This will ask you a few questions about how the fork should be replaced and create a github support ticket automatically.

After a couple of days, your repo will appear totally “unforked”. Thank’s to GitHub support!


Author:svermeille for CookieCode

CC BY-NC-SA 4.0 license)

title:《 [How to] Remove the fork link from a forked GitHub repository 》