# git pull

If you have collaborators on your repository or you decide to update your repository from a different computer (i.e a school computer or a virtual machine), you may have updates on your remote repository that are not on your local computer

We can also create changes to our repository directly on github.com. In our example, we will make changes to our "add\_numbers.r" file.

Go to your "add\_numbers.r" file and click on the pencil icon in the corner.

![](/files/-MSuGDTarZ8RfcvvcOog)

We will add another function to the file titled "add\_three\_numbers," which I think is pretty self-explanatory.&#x20;

Below our text box, GitHub has already set up a commit message. Once we've clicked "commit changes", our repository is updated.

![](/files/-MSuGPXEIWNscd0SKcEy)

Now head back over to your terminal, change directories into your local repository folder, and type "git pull"

![](/files/-MSuGTNnALRsbdwdB7LB)

The warning in the beginning may appear, but it is only a warning and not a problem with the actual pull request. You will not normally be getting this warning, but if you do, don't worry. Follow the prompts to prevent it from happening again, or just ignore it.

Now if you check your R script file on your local computer, you will see our additional function!

![](/files/-MSuGcArRl_i51Kd7DgV)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://intro-to-github-docs.beliciarodriguez.com/git-commands/git-pull.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
