Converting a fork into a standalone repository
To turn your fork into a standalone repository, you can leave the fork network ensuring the new repository will no longer automatically sync with changes from the original repository. This is useful when you want to take the work you are doing in a different direction or maintain distinct versions.
Warning
- The new repository will not retain any of its issues, pull requests, wikis, stars, watchers, comments, child forks, or other metadata that may currently be associated with your current fork.
- All git commit metadata will be preserved. Commits may become eligible to be counted as contributions if they meet certain criteria. For more information, see Why are my contributions not showing up on my profile?.
- Leaving the fork network is permanent and the new repository cannot be reconnected to the fork network.
Leaving the fork network
You can only detach forks with the leave network option when:
- The fork is public
- The fork is less than 1GB
- The fork does not have any child forks attached
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.
-
On the "General" settings page (which is selected by default), scroll down to the "Danger Zone" section, and click Leave fork network.
-
Read the warnings and click I have read and understand these effects.
-
To verify that you're deleting the correct repository, in the text box, type the name of the fork.
-
Click Leave fork network.
While the fork is being detached, some operations will be briefly unavailable until the fork has been transitioned to a standalone repository.
Manually Leaving the fork network
To turn your fork into a standalone repository, you can clone the fork, use the clone to create a new repository, and then delete the fork removing the connection to the original network.
-
Open TerminalTerminalGit Bash.
-
Create a bare clone of the fork.
git clone --bare https://github.com/EXAMPLE-USER/FORK.git
-
Delete the forked repository. For more information, see Deleting a repository.
Warning
Deleting a fork will permanently delete any associated pull requests and configurations. This action cannot be undone.
-
Create a new repository with the same name in the same location. For more information, see Creating a new repository.
-
Mirror-push the repository back to the same remote URL.
git --git-dir FORK.git push --mirror https://github.com/EXAMPLE-USER/FORK.git
-
Remove temporary local clone you created earlier.
rm -rf FORK.git
For more information, see our support page on forks.