Steps on how to create fork-repo
from your own original-repo
- Create a new empty
fork-repo
repository on Github
- Clone
fork-repo
git clone git@github.com:<YOUR_USERNAME>/fork-repo.git
- Add an upstream remote pointing to
original-repo
cd fork-repo
git remote add upstream git@github.com:<YOUR_USERNAME>/original-repo.git
- Pull from original-repo
git pull upstream master
- Push to fork-repo
git push origin master
cd fork-repo
git fetch upstream
git merge upstream/master
git push origin master
This guide need to be updated, master has been deprecated in favour of main