Unfork github-how to unfork the github repository?
How to unfork a Github repository?
I have never seen unfork option. Does anybody know how to do that?
Currently, Github doesn't have an unfork option, so the only solution is to delete the forked repo.
Warning: The following solution will delete your cloned repo. If you want unfork without your repo is being deleted try the method shown at the end of this answer as “Note”
Step 1: Go to Settings of Repo you want to unfork
Step 2: Click Delete this Repository
Step 3: Enter your name / Repo name
Step 4: Click the "I understand the consequences, delete this repository" button
Note: This technique will create a new "unforked" repository while maintaining everything else (commit history, branches, and tags).
How to "unfork gitgub" a project in four easy steps:
git clone --bare https://github.com/{username}/{repository}
Delete original repository in https://github.com/{username}/{repository}/settings.
Create new repository with the name {repository} at https://github.com/new.
cd {repository}.git and git push --mirror https://github.com/{username}/{repository}