- Just click 'Fork' on the top right of the GitHub page
-
Make a new repo on GitHub (eg. datagovsg/opendoc-myrepo)
-
Clone it
git clone git@github.com:opengovsg/opendoc-myrepo.git
-
Add the url to the repo you want to fork, as upstream
cd opendoc-myrepo git remote add upstream git@github.com:opengovsg/opendoc-bare.git
-
Pull all the files from the repo you are forking
git pull upstream master
-
Push all the files in your local fork to the repo on GitHub
git push origin master
On GitHub repo page - Settings - Scroll down to GitHub Pages - Select the branch you want to publish from: master/docs
On GitHub repo page - Settings - WebHooks on the left nav bar - Add webhook