Set up your fork#
First you follow the instructions for Making your own copy (fork) of Matplotlib.
git clone https://github.com/your-user-name/matplotlib.git cd matplotlib git remote add upstream https://github.com/matplotlib/matplotlib.git
Clone your fork#
Clone your fork to the local computer with
git clone https://github.com/your-user-name/matplotlib.git
Investigate. Change directory to your new repo:
cd matplotlib. 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 Matplotlib github repository, so you can merge in changes from trunk.