DEV Community

How to unfork a repo on GitHub

Nicky Meuleman on August 03, 2019

TL;DR: 2 steps: Rename the repository. Import the renamed repository under the original name. Sometimes a repository on GitHub started off as a ...
Collapse
 
jsn1nj4 profile image
Elliot Derhay

I have seen people create a copy that wasn't a fork before. I have a question though: if the project is going to have the exact same name, what are some reasons to break the "fork" connection between your fork and the original?

Collapse
 
nickymeuleman profile image
Nicky Meuleman • Edited
  • If the connection as fork no longer makes sense.
    The example used in this post started as a fork from an example repo.
    It was great to get started, but the connection no longer makes sense. No pull requests from my fork to that original example repository would be logical.

  • It can make extra contributions harder.
    If anyone wanted to fork, (and contribute to) gatsby-theme-nicky-blog while it was still marked as a fork of that example repo. GitHub wouldn't let them do that if they forked that example repo as well.