# How do I use Git with GitHub?

GitHub is a centralized location for hosting Git repositories (think about it: Git HUB). It is where we can store a copy of our local repository, previously referred to as the server repository.

GitHub also has many other features that can help in keeping track of a project with many collaborators (i.e Issues & Projects tabs for a repository).

Git has four fundamental commands that create versions of documents and updates them to GitHub or your local/remote repositories: git add, git commit, git push, and git pull

* **git add** - tells git you want to add a version of a file to your local repository
* **git commit** - commit saves the versions of the files you added previously to your local repository
* **git push** - push sends the updated local repository to your server repository in GitHub
* **git pull** - if you made changes to your server repository through another remote computer, then you use git pull when you want to update your local repository with those changes

Git repositories can store and update almost any file type. I've stored RMarkdowns, jupyter notebooks, python and R scripts, PDFs, and pictures.

![](/files/-MSu-r8d7Nc4CwEZ4Syp)

![](/files/-MSu-upVyFAK2RuFIDLf)


---

# 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/background/git-with-github.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.
