Skip to content
Git
Forking a Repo

Forking a Repo

To start, you need a directory in which you can clone the remote project.

Forking

First: git clone [your repo link]

Then: cd [repo directory]

And: git remote add upstream git@[target repo link]

The first command sets your local repo to your remote repository, the last command adds a reference to the target remote repository.