How To Unfork In GitHub Repository
Ans.
In GitHub, forking is a process by which you create a copy of a repository under your GitHub account. If you want to “unfork” a repository, it means you want to disconnect your forked repository from the original repository. This essentially means you want to stop tracking changes from the original repository.
To “unfork” a repository in GitHub, you need to delete your forked repository. Here’s how you can do it:
- Go to Your Repository: First, navigate to the forked repository that you want to unfork. This is the repository under your GitHub account.
- Click on “Settings”: Click on the “Settings” tab, which is usually located on the right-hand side of the repository’s menu bar.
- Scroll Down to the Danger Zone: Scroll down to the bottom of the settings page, and you will see a section called “Danger Zone.”
- Click on “Delete this repository”: In the “Danger Zone” section, you will find an option called “Delete this repository.” Click on it.
- Confirm the Deletion: You will be asked to confirm the deletion by typing the name of the repository. This is a safety measure to ensure you don’t accidentally delete it. Enter the repository name and click the “I understand the consequences, delete this repository” button.
Once you’ve completed these steps, your forked repository will be permanently deleted, and it will be “unforked” from the original repository. Any changes you’ve made to the forked repository will no longer be associated with the original repository. Keep in mind that this action is irreversible, so be absolutely sure you want to delete the fork before confirming.
If you only want to stop tracking updates from the original repository but want to keep your forked repository, you can simply disconnect it by going to the “Settings” of the forked repository and clicking on the “Unwatch” or “Unstar” option, depending on how you’re tracking updates from the original repository. This will stop you from receiving notifications and updates from the original repository.
Hello, I’m Hridhya Manoj. I’m passionate about technology and its ever-evolving landscape. With a deep love for writing and a curious mind, I enjoy translating complex concepts into understandable, engaging content. Let’s explore the world of tech together