Set up your fork¶
First follow the instructions for Making your own copy (fork) of ODL.
$ git clone email@example.com:your-user-name/odl.git $ cd odl $ git remote add upstream https://github.com/odlgroup/odl.git
Clone your fork¶
Clone your fork to the local computer with
$ git clone firstname.lastname@example.org:your-user-name/odl.git
Investigate. Change directory to your new repo:
cd odl. Then
git branch -ato show you all branches. You’ll get something like this:
* master remotes/origin/master
This tells you that you are currently on the
masterbranch, and that you also have a
origin/master. What remote repository is
git remote -vto see the URLs for the remote. They will point to your GitHub fork.
Now you want to connect to the upstream ODL GitHub repository, so you can merge in changes from trunk.