About this question
How to unfork a Github repository?
I have never seen unfork option. Does anybody know how to do that?
How to unfork a Github repository?
I have never seen unfork option. Does anybody know how to do that?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask DevOps Expert
Vikram Choudhary JanBask Expert
Answered on Jun 2, 2021
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}
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common DevOps interview questions, answered
Guides, tips and career advice on DevOps from JanBask experts.
DevOps How to Become a DevOps Engineers: Learning Path, Critical skills & More
Looking for answer to how to become a DevOps engineer in 2025? Here is the detailed article about DevOps career path, DevOps…
DevOps Top 50+ Jenkins Interview Questions And Answers For 2025
Here are the Top 50 Jenkins interview questions frequently asked in top MNCs which will help you land an ideal job! These…
DevOps Best 37 DevOps Tools To Learn And Master In 2025: Docker, Git & More
Want to know what are Devops tools and their uses? Or looking for the best DevOps list for automation, monitoring, & development?…
DevOps DevOps Engineer Job Description: Roles and Responsibilities [2025 Updated]
Discover the essential roles and responsibilities of a DevOps Engineer by exploring the detailed DevOps job description, and…