# Repositories and GitHub

StackIDE reads your repositories to build your sites. It never writes to them: your code goes to GitHub with your own git.

## Connect the workspace’s GitHub

An owner or admin connects GitHub once for the workspace, and chooses which repositories StackIDE may read. Every site in the workspace is made from one of them. Read access is all StackIDE asks for, because reading is all it does.

## What a site reads

| Setting | What it is |
| --- | --- |
| **Repository** | The GitHub repository the site is built from. |
| **Branch** | The branch production deploys build. A push to it deploys. |
| **Folder** | Where in the repository the site lives: the root, or one folder of a larger project. |

Change any of them from the site’s Overview with **Change repository**, or from **Deploys → Build**. The next deploy builds from the new setting.

## Pushing

StackIDE never commits, pushes or opens pull requests. You push with git, from [the Mac app’s Code](https://www.stackide.com/docs/mac/code), your own editor or your terminal, and the push deploys. An agent you connect works the same way: it changes files on your computer and you, or it, push them with git.

> **Note:** When GitHub’s push events reach StackIDE, every push to the site’s branch deploys by itself. Until then, deploy from **Deploys → Deploy latest commit**.
