> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getnao.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Git

> Connect the repository that stores your context files, so admins can edit them in the browser

Connecting a context repository is what turns the [File Explorer](/nao-agent/chat/admin/file-explorer) into an editor.

Set it up in **Settings** -> **Git**.

<Steps>
  <Step title="Server keys - once per deployment">
    Register a **GitHub OAuth App**, so nao can act on your team's behalf, then set `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` on the server and restart nao. Until then, the other steps stay disabled.
  </Step>

  <Step title="The repository - once per project">
    Point nao at the repository holding your context files. This doesn't overwrite your live project or push anything, and disconnecting it later deletes nothing. Only a project admin can disconnect it.
  </Step>

  <Step title="Your own account - once per person">
    Authorize nao with your personal GitHub account. This is what commits and opens pull requests **as you**, so your name is on the change and your own GitHub permissions apply.
  </Step>
</Steps>

<Info>
  If your deployment supplies context files through environment variables, this page shows a read-only summary instead. See [Deployment-managed context files](/nao-agent/self-hosting/context-source).
</Info>
