gemote-0.4.0 is not a library.
gemote
Declarative git remote management. Define your remotes in a .gemote file, commit it, and keep the whole team in sync.
Install
From crates.io
From source
Pre-built binaries
Built and attested binaries are available for Linux, macOS, and Windows. Download from GitHub Releases
Docker
Usage
gemote save
Write your current local remotes into a .gemote file:
gemote sync
Set your local remotes to match the .gemote config:
Global flags
--config <path> Path to config file (default: .gemote at repo root)
--repo <path> Path to git repository (default: discovered from cwd)
Config format
.gemote uses TOML:
[]
# What to do with local remotes not in this file: "ignore" (default), "warn", "remove"
= "ignore"
[]
= "git@github.com:org/repo.git"
[]
= "git@github.com:upstream/repo.git"
= "git@github.com:you/repo.git" # optional, only if push URL differs
Recursive / submodule config
When using -r/--recursive, gemote automatically discovers git submodules and nested repos. Their remotes are stored under [submodules."<path>"]:
[]
= "git@github.com:org/repo.git"
[]
= "git@github.com:org/core.git"
[]
= "git@github.com:upstream/core.git"