Set up Your Fork#
First you follow the instructions for Making Your own Copy (fork) of Iris.
git clone firstname.lastname@example.org:your-user-name/iris.git cd iris git remote add upstream email@example.com/SciTools/iris.git
Clone Your Fork#
Clone your fork to the local computer with
git clone firstname.lastname@example.org:your-user-name/iris.git
Change directory to your new repo:
cd iris. Then
git branch -ato show you all branches. You’ll get something like:
* main remotes/origin/main
This tells you that you are currently on the
mainbranch, and that you also have a
origin/main. 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 Iris github repository, so you can merge in changes from trunk.