When working with other developers on the same project, the code may frequently change from commits being made to the repository. Therefore, the repository you initially cloned might have changes to the main branch others made that you'll want to reflect on your branch.
To keep your repository up to date, you're going to use the git pull command. This command updates the branch that you are currently working on, whether that be the default main branch, or a branch that you created. To help understand the uses of the git pull command, let's walk through a scenario where git pull will be helpful for us to use, and you may find yourself in.