> For the complete documentation index, see [llms.txt](https://intro-to-github-docs.beliciarodriguez.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intro-to-github-docs.beliciarodriguez.com/git-commands/git-pull.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
