Steps to Forking A Repository
Step 1: Open the repository that you want to Fork there You can see the icon as shown in the image below in the repo’s top right corner. Now, this feature is used to Fork the repo.
Step 2: Go to any repository that you want to Fork here we are using a sample repo of Python official repository.
You can see python/cpython. This means python is the maintainer and cpython is the project’s name.
Step 3: Find the Fork button in the top right corner.
Step 4: Click on Fork.
Step 5: Now you have your own copy of the repository. But how can we confirm for which do refer to below visual aid as follows:
Now we can see your user name(**********)/CPython and also below that, we have the link to the original project I forked from.
Whatever changes are made to ‘******/python? We can make my changes here and then make a Pull Request to the maintainers of the project. Now it is in their hand if they will accept or reject your changes to the main project.
Git – Fork
Forking a repository means creating a copy of the repo. When you fork a repo, you create your own copy of the repo on your GitHub account. When several developers want to work on a project but need to make changes that are inappropriate for the original repository, forking is frequently used in open-source software development.
In this article, we will learn more about Git-Fork and its uses.
Table of Content
- What is Git Fork?
- Reasons For Forks
- Steps to Forking A Repository
- Fork Using Command Line
- Difference between Git Fork vs Git Clone
- How To Decide Between A Git Clone And Fork?
- Configuring Git To Sync Your Fork with the Upstream Repository
- Conclusion