Now, recall that upstream main should be the starting point for all new work. So, before you can work on something new, youβll need to ensure that your main branches look like the upstream main (i.e. you will synchronize them with the upstream). This is a two-step process. First, you will pull the upstream main into your local repository and then you will push it to your origin. FigureΒ 4.2.1 shows how pulling main from the upstream and then pushing it to your origin synchronizes the main branches.
Diagram showing that a pull from the upstream main branch has updated the local main branch. And pushing the local main branch to origin has updated the origin main branch. Now all three repositories (upsteam, origin, and local) all have the same sequence of commits.