Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 601 Bytes

fork-your-own-repo.md

File metadata and controls

24 lines (18 loc) · 601 Bytes

Fork your own repo on GitHub

Source: Jason Krol

Variables

  • <username>: your GitHub username
  • <newrepo>: a blank repo that you want to fill with your project
  • <oldrepo>: the repo that you want to fork

Steps

git clone https://github.com/<username>/<newrepo>.git
git remote add upstream https://github.com/<username>/<oldrepo>.git
git pull upstream master
git push -u origin master

Notes

If you want to pull in new changes from <newrepo>, run:

git pull upstream master