Skip to content

1: Getting started (GitHub)

jdhenshaw edited this page Jul 13, 2022 · 1 revision

Getting started with GitHub


The first thing you need to do is create a fork of the WP2 pilot repo, by clicking on "Fork" in the top right of the main repo...

image

Next clone your own repo by clicking on "code" and copying the URL...

image

Head to a location of your choice and type...

git clone [copied URL]

Next we want to add the upstream URL. To do this, first type...

git remote -v

and you should see something like...

origin https://github.com/jdhenshaw/WP2_pilot.git (fetch)
origin https://github.com/jdhenshaw/WP2_pilot.git (push)

then add the remote upstream by typing...

git remote add upstream https://github.com/ACES-CMZ/WP2_pilot.git

Typing git remote -v again, you should see something like the following...

origin https://github.com/jdhenshaw/WP2_pilot.git (fetch)
origin https://github.com/jdhenshaw/WP2_pilot.git (push)
upstream https://github.com/ACES-CMZ/WP2_pilot.git (fetch)
upstream https://github.com/ACES-CMZ/WP2_pilot.git (push)

That's it - you should now be set up!