Tsallaka zuwa abun ciki
Justice Tech School

Pull Requests and Forks

A fork is your own copy of someone else repository on the host. You push a branch to your fork and open a pull request so maintainers can review it. These need a host account so the commands are shown, not run.

Example
git clone https://github.com/you/project.git
git remote add upstream https://github.com/owner/project.git
git switch -c fix-typo
# edit, commit
git push -u origin fix-typo
# then open a pull request on the host
git fetch upstream && git rebase upstream/main

Exercise

Name the original remote.

git remote add  url

Quiz Test

What is a fork?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.