Mirroring
Keep a read-only copy of your repository on GitHub, updated on every push to Sypnia Git.
On this page
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.
npx @sypnia/git mirror github laespiga/webThe 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
npx @sypnia/git mirror github laespiga/web --stopThe GitHub copy stays as it was at the last update; nothing is deleted on either side.