Create GitHub repository mirrors with the Entire CLI and configure Git remotes.
A mirror is a synced, read-optimized copy of a GitHub repository, hosted on Entire’s Git network in the region you choose.Use the CLI when you want to create a mirror from the terminal, script mirror setup, or immediately configure Git remotes. For the web flow, see Mirrors in Entire.io.
Entire lists the GitHub repositories you can mirror, then prompts you to select repositories and regions. Each repository is mirrored into every region you select, and Entire creates the mirrors in parallel:
Select repos to mirrorSpace to select, enter to confirm.> [•] <owner>/<repo>Select regions to mirror intoEach repo is mirrored into every selected region.> [•] us-east (us) [•] eu-west (eu)REPO REGION STATUS CLONE URL<owner>/<repo> us-east (us) ready entire://aws-us-east-2.entire.io/gh/<owner>/<repo><owner>/<repo> eu-west (eu) ready entire://aws-eu-central-1.entire.io/gh/<owner>/<repo>
This registers the mirrors on Entire. It does not change any local Git checkout.
The repository can be written as owner/repo, an HTTPS GitHub URL, or an SSH GitHub URL. If you omit the cluster host, an interactive terminal prompts you to pick a region; non-interactive runs default to aws-us-east-2.entire.io. To mirror into more than one region from a script, run the command once per cluster host.The command waits until the initial clone from GitHub is available, then prints the mirror URL:
Creating a mirror is idempotent for a given repository and region: rerunning the command returns the existing mirror. To return as soon as the mirror is registered instead of waiting for the initial clone, pass --no-wait.
Push to the configured remote with normal Git commands:
git push -u origin <branch>
Entire forwards the push through the mirror to the upstream GitHub repository. Your GitHub write access, branch protection rules, and required checks still apply.
Branches whose names start with entire/unmirrored/ are never forwarded to GitHub. The branch stays in the mirror’s Entire region, so pushes to it are not subject to GitHub’s push rate limits. See Unmirrored branches for when to use them.Create and push an unmirrored branch with normal Git commands:
Entire does not currently back up unmirrored branches, and they are not available on GitHub or from mirrors in other regions. Keep a copy of any work you cannot afford to lose on a mirrored branch or on GitHub.