Synchronise changes from the remote in your local repository

When new changes are pushed into the remote repository, the changes are not automatically put onto your computer. To obtain the latest version of the files, you should pull the branch from the remote.

Make sure you have no uncommitted/unstashed changes when pulling.

Assuming you are on the branch you want to update, pulling can be done in the following way;

Type the following command;

git pull

When someone pushed changes onto your branch and you did too, Git will merge the changes that happened. This merge will result in a merge commit where, just like with merging, merge conflicts can occur.

Switch back to the main branch and see what the current status is of the main branch. After this, use pull to get the new changes. What changed?