Configure the Checkpoint Remote
Create a separate, empty repository for checkpoint data, then run this from your project:provider:owner/repo, where the provider is github or gitlab. This writes:
.entire/settings.json
.entire/settings.json when the checkpoint remote should apply to the whole project. That setting is what entire.com reads to locate checkpoint data.
If you mirror your code repository from GitHub, mirror the checkpoint repository too, in the same region. entire.com reads checkpoint data through that mirror, so without it the project shows no checkpoints even though your pushes succeed.
Keep Checkpoints under the Same Owner
Use a checkpoint repository with the same owner or organization as your code repository. Code atgithub.com/acme/app pairs with github:acme/app-checkpoints, because acme owns both.
A committed checkpoint_remote is inherited by everyone who clones or forks the project. To keep a contributor’s session data out of the upstream project’s checkpoint repository, Entire ignores the setting when it looks inherited, and uploads checkpoints to the remote you push to instead, following the rules in Choose Where Checkpoints Are Uploaded. entire status shows when and why the setting is ignored.
Entire treats the setting as yours when either of these is true:
- It is in the gitignored
.entire/settings.local.json. - Your
originand every push URL of the remote you push to are owned by the same account or organization as the checkpoint repository.
origin belongs to the upstream project. If your checkpoint repository is owned by a different account or organization than your code, configure it in .entire/settings.local.json so it is always used:
Push Behavior
When you push code, Entire pushes checkpoint data to the checkpoint repository separately, using the same protocol, SSH or HTTPS, as your Git remote. The checkpoint repository is used regardless of which of your remotes would otherwise receive checkpoints. If the checkpoint repository cannot be reached, your main Git push still succeeds. Entire keeps the checkpoint data locally and warns that it could not sync. With the legacy branch storage backend, Entire also fetches existing checkpoint data from the checkpoint repository once, if it has data you don’t. The defaultgit-refs backend fetches checkpoints on demand instead.
Use a Separate Token
SetENTIRE_CHECKPOINT_TOKEN to authenticate checkpoint fetches and pushes with a dedicated token, without changing the credentials for your code repository. When it is set, Entire:
- Adds the token to the HTTPS Git operations it runs for checkpoints.
- Rewrites SSH remotes, including
origin, to the equivalent HTTPS URL for checkpoint operations, so the token can authenticate. If a URL cannot be rewritten, the operation runs over SSH without the token and Entire prints a warning. - Without a
checkpoint_remote, applies the token to the remote chosen as described in Choose Where Checkpoints Are Uploaded.