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

# GitHub, export, and import

> Sync a Mythex project to GitHub, download a .tar.gz export, or import an archive into a project.

# GitHub, export, and import

You own your code. Mythex provides common ways to move it in and out of the product.

## Export `.tar.gz`

From **project settings → Export**, download the project as a `.tar.gz` archive.

Secrets and `node_modules` are excluded — safe to move between environments.

## Import an archive

From the same Export settings section, **Import into this project** with a `.tar.gz`, `.tgz`, or `.zip`.

* Replaces the project’s files with the archive contents
* Existing project **secrets stay**
* Imported `.env` files are **stripped** (re-add secrets in Settings)

Use import to restore a backup or bring an existing codebase into an empty/new project sandbox.

## GitHub sync

1. Connect GitHub from settings (OAuth) while logged into Mythex
2. From the project, push/pull against the linked repository

<Note>
  GitHub OAuth here is for **repo sync**, not the primary signup method. Sign up / sign in still uses email or Google.
</Note>

## Tips

* Connect GitHub before a large handoff to an engineering team
* Prefer clean checkpoints before force-push style operations in your own remotes
* Export is always available even if GitHub is disconnected

## Related

* [Preview & Code](/features/preview-and-code)
* [Account sign-in](/account/sign-in)
* [Environment variables and secrets](/features/env-and-secrets)
