GitHub: make fork an "own project"

To detach the fork and turn it into a standalone repository on GitHub, contact GitHub support.

https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/#commit-was-made-in-a-fork


In order to do this you need to duplicate the repository. The short version is:

  1. Create a new repository on GitHub.
  2. Clone the forked repository you want to detach from its parent.
  3. Push all branches in this clone to your new repository.

This is super easy:

  1. Clone the repo somewhere: git clone [email protected]:USERNAME/REPOSITORY.git (make double sure you have it cloned)
  2. Delete the repo in GitHub (Settings > Options > Delete this repository)
  3. Create a new blank repo in GitHub
  4. git remote set-url origin [email protected]:USERNAME/NEW_REPOSITORY.git (if you used the same name for the repo, then NEW_REPOSITORY == REPOSITORY 👍🏻)
  5. git push
  6. 🙌🏻

(I use ssh, but if you use https your github urls will look like https://github.com/USERNAME/REPOSITORY.git)

Tags:

Git

Github