Skip to content

mise dotfiles origin set ​

Connect an origin repository

Use a private repository: every saved checkpoint is shared, including those saved before you connect. mise prints the sync mode and the tracked files, then connects and runs the first sync: it fetches in every mode, and pushes your saved checkpoints unless the mode is fetch-only. It never replaces a repository that has unrelated history, and it refuses to push older plaintext versions of files you now encrypt. The connection is written to [history.origin] in config.local.toml next to your global config, so it stays on this machine.

The origin holds tracked-file history, not a checkout of your global config: connect a repository of its own, or a separate branch (--branch) of the one you adopt as global config with mise bootstrap --adopt.

Arguments ​

  • <URL> — The repository URL (any Git URL; use a private repository)

Flags ​

  • --branch <BRANCH> — The branch to sync (default: the repository's default branch)

    Reconnecting a repository this machine already follows keeps that connection's branch. A repository with no branches gets main, which the first push creates.

  • --sync <MODE> — How to sync with the repository: sync, fetch-only, or manual

    sync pushes saved checkpoints and applies incoming changes automatically. fetch-only fetches automatically and never pushes. manual makes no network calls after the first sync that connecting runs: mise dot sync pushes and fetches, and mise dot pull applies, only when you run them; local history is still saved automatically. When omitted, mise prompts; with --yes, it uses the history.sync setting.

  • -y --yes — Skip the sync mode prompt and use the history.sync setting

  • -h --help — Print help

Examples ​

Connect and choose a sync mode at the prompt

mise dot origin set https://github.com/you/dotfiles.git

Connect, then sync only when you run mise dot sync

mise dot origin set git@github.com:you/dotfiles.git --sync manual
MIT LicenseCopyright © 2026jdx.dev