Skip to content

Mirroring

Keep a read-only copy of your repository on GitHub, updated on every push to Sypnia Git.

Applies to Cloud
View as Markdown
On this page
  1. What moves
  2. Stop a mirror

A mirror keeps a read-only copy of your repository on GitHub. Your work happens in Sypnia Git: people and agents push there, pull requests are reviewed there, and the GitHub copy follows. It is useful when people outside should find your open-source code on GitHub, or when a tool you use only reads from GitHub.

Terminal
npx @sypnia/git mirror github laespiga/web

The command asks you to install the Sypnia GitHub App on that GitHub repository, with permission to write to it and nothing else, and records the mirror in the [git] table of sypnia.toml.

What moves

  • On every push to Sypnia Git, the branches, tags and LFS objects that changed are pushed to GitHub, usually within seconds.
  • Nothing comes back. A commit pushed straight to GitHub, or a pull request opened there, is not brought into Sypnia Git, and the next update from Sypnia overwrites that branch on GitHub. Protect the branches on GitHub so that only the Sypnia GitHub App can push to them.
  • Code only. Issues and pull requests are not mirrored. They move once, when you import or export.

Stop a mirror

Terminal
npx @sypnia/git mirror github laespiga/web --stop

The GitHub copy stays as it was at the last update; nothing is deleted on either side.

  1. What moves
  2. Stop a mirror

    Search pages, sections and terms