Distributing your app

GitHub Sync

Back up your app's code to a private GitHub repository: MeDo creates the repository and pushes every new version automatically, one way from MeDo to GitHub.

Updated 2026-11-23

GitHub Sync keeps a copy of your app's code in a private GitHub repository. MeDo creates the repository for you, then pushes every new version of the app to it automatically. Sync is one way: changes made on GitHub are not synced back to MeDo.

Looking to use GitHub data inside your app? To build an issue board, a pull request dashboard, or a feedback form that opens GitHub issues, use the GitHub connector instead. GitHub Sync is only for your app's own code.

When you would use it

  • You want a backup of the code outside MeDo, with a full history of every version.
  • A developer wants to read, review, or run the code locally from a repository.
  • You want to use GitHub tools on the code, such as code review or CI checks, while you keep building in MeDo.

If you want to leave MeDo and host the app yourself, see Exporting & self-hosting.

Who can use it

  • Members only. GitHub Sync works when the app has an active subscription, trials included: for an app in a personal space, the space owner's subscription; for an app in a team space, the team's enterprise subscription.
  • One unlock per app. The first time a member connects or downloads an app's code, MeDo charges that app a one-time 300 credits, with no confirmation dialog. After that, syncing and downloads for the app cost no credits. Apps already unlocked, including through an earlier paid download, are not charged again. A remixed or copied app is a new app and needs its own unlock.
  • Editors connect and disconnect. Anyone who can edit the app can connect or disconnect it. Members who can only view the app see the sync status, without buttons.
  • Where to find it. Open the app in the editor and click GitHub in the left sidebar. The entry is not shown on mobile devices, for task apps, or for older apps created before source-code apps. A new app shows the entry once its code has been generated. You can also click the Export code icon in the editor top bar, then Set up next to Auto-sync to GitHub; this only opens the page and charges nothing.

Connect a repository

  1. Open the app in the editor and click GitHub in the left sidebar.
  2. Click Connect GitHub. If the app has not been unlocked yet, the 300 credits are charged now. A GitHub window opens. Approve the access the first time; if you have used it before, the window continues on its own.
  3. If the MeDo app is not installed on your GitHub account yet, GitHub asks where to install it. Choose your personal account or an organization, and all repositories or only selected ones. The window closes when you finish.
  4. Back in MeDo, under Choose an account or organization, pick where the repository should live. Click Add a GitHub account or organization to install the app on another one. If an organization limits third-party apps, GitHub sends the request to an organization owner, and you refresh the page after they approve it.
  5. Under Confirm the repository name, keep or change the suggested name (based on the app name), then click Create repository and connect. If the name is taken, MeDo adds a number such as -2.
  6. The status changes to Syncing to GitHub. The first push usually takes a few seconds to a minute.

MeDo always creates a new private repository. It cannot connect an app to a repository that already exists.

Once connected, the page shows the repository, the synced branch, and the connection status (Connected) on one row. Click the status for Open in GitHub, Manage GitHub access, and Disconnect. Below are the sync status with a Recheck button that refreshes it, a line with the sync rules, Clone locally with the HTTPS, SSH, and GitHub CLI commands, and Download codebase, which downloads the app's ZIP.

The GitHub page of a connected app: repository, branch, and Connected status; Synced with GitHub with Recheck; Clone locally commands; and Download codebase

How sync works

  • Automatic. Every new version of the app, and every rollback, is pushed to the repository's default branch, the one it had when you connected. There is no "sync now" button, and you cannot pick another branch.
  • Only what changed. Each push contains the files MeDo changed since the last sync. Files that someone else changed on GitHub and MeDo did not touch are left as they are.
  • Never forced. MeDo never overwrites the history of the branch.
  • Not included. The repository gets the same files as Download ZIP, without the Supabase CLI's local cache. .env and .env.* files are not synced: in the folder of each excluded file, the repository gets a .env.example that lists the variable names without values, and .gitignore ignores .env. Files larger than 100 MB are not synced, and the page says so.

When someone else commits on GitHub

If the branch has new commits from someone else, MeDo merges its changes on top of them so their work is kept. When the same file was changed on both sides, MeDo does not pick a winner:

  1. MeDo pushes its changes to a separate branch called medo-sync, and the status shows Conflict: waiting for a merge on GitHub.
  2. The page lists the changed files. Click Merge on GitHub, open a pull request from medo-sync into the synced branch, and merge it.
  3. Syncing continues automatically after you merge. New versions made while the conflict is open are added to medo-sync. If you commit to medo-sync yourself, MeDo uses medo-sync-2, then medo-sync-3.

Use Create a merge commit when you merge. Squash and rebase merges also work, but the next time MeDo changes a file that was edited on GitHub, sync stops at Conflict again so that you can check the change.

The same flow applies when the branch is protected and MeDo cannot push to it directly, or when its history was rewritten with a force push.

Sync status

StatusWhat it meansWhat to do
Synced with GitHubThe latest version is on GitHub. The page shows when, and the commit.Nothing.
Syncing to GitHubA push is in progress.Wait.
Conflict: waiting for a merge on GitHubMeDo's changes are on the medo-sync branch.Merge the branch on GitHub.
Sync failed. It will retry automaticallyA push failed for a temporary reason.Wait for the retry.
Sync stoppedThe project is too large to sync, or the synced branch was deleted on GitHub.Reduce the project's size and it syncs again with the next version. If the branch was deleted, restore a branch with the same name on GitHub and sync continues.
Sync pausedThe owner's membership has expired.Renew, and sync resumes on its own. You can also disconnect.
Connection is no longer validThe repository was deleted, removed from the app's access, or the MeDo app was uninstalled or suspended on GitHub.Restore access on GitHub, or click Reconnect, which creates a new repository.

Renaming the repository does not break sync.

Disconnect and reconnect

Click the connection status (Connected) at the top of the page, choose Disconnect, and confirm. Sync stops; the repository and its history stay on GitHub, and the app's code in MeDo does not change. Disconnecting does not uninstall the MeDo app from GitHub; use Manage GitHub access in the same menu for that.

Connecting again, including Reconnect, always creates a new repository. The old repository is kept but no longer synced, because MeDo cannot tell what changed in it while it was disconnected.

Copying an app does not copy its GitHub connection; the copy starts unconnected.

FAQ

How do I push my code to GitHub? Use GitHub Sync: open the app in the editor, click GitHub in the left sidebar, and connect. You do not need to ask the AI to write any code for it, and you do not need the GitHub connector.

Can I edit the code on GitHub and bring the changes back into MeDo? No. Changes on GitHub are not synced back. Keep making changes in MeDo; edits on GitHub stay on GitHub, and MeDo merges around them as described above.

Can I connect a repository I already have? No. MeDo creates a new private repository each time you connect.

Can I sync to a branch other than the default branch? No. MeDo syncs to the default branch the repository had when you connected.

Does it cost credits? Only once per app: the first connection or download by a member charges the app 300 credits, with no confirmation dialog, unless it was already unlocked. After that, syncing and downloads use no credits. If the membership expires, sync pauses, and renewing resumes it without another unlock.

Why is there no .env in my repository? For security, MeDo does not sync .env and .env.* files to GitHub. In the folder of each excluded file, the repository gets a .env.example with the variable names and no values, and .gitignore ignores .env so a copy you add later is not committed by accident.

  • To run the code on your computer, download the ZIP, which contains a .env and is covered by the same unlock. Put that .env in the root of the repository. You can also copy .env.example to .env and fill in the values yourself.
  • To deploy from the repository on a platform such as Vercel, add the variables in the platform's environment settings. The names are in .env.example, and the values can come from the .env in the ZIP.

After installing on GitHub, a MeDo page says "GitHub authorization was not completed." This page appears when you install the MeDo app directly on GitHub instead of starting from MeDo: GitHub sends you back to MeDo without the details of a connection started in MeDo. The installation itself worked. Close the page, go back to the GitHub page in the editor, and connect again.