How to Fork a Repo in Git?

Go to the repository on GitHub

Click Fork in the top-right corner

Select your account or organization

Wait for the fork to be created

Clone your fork to your local machine

Add the original repository as an upstream remote

Make your changes in a new branch

Commit your changes

Push the branch to your fork

Open a pull request from your fork to the original repository

Suggested for You

Trending Today