git_remote
List, add, remove, or rename Git remotes to check where a repository syncs, configure a new upstream, or fix a remote URL.
Instructions
Manage remotes: list, add, remove or rename them.
Use this to answer 'where does this repo sync to?', to configure a new upstream, or to fix a remote URL.
Best for: configuring where the repository syncs to and from.
Returns: one 'name -> url' line per remote, or operation confirmation; 'No remotes configured.' when none exist; add needs both name and url, remove/rename operate on existing remotes.
Does NOT transfer data — use git_fetch, git_pull, or git_push to move commits.
More readable than raw git config --list when looking for remote URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Remote URL or new name (for rename) | |
| name | No | Remote name | |
| operation | No | One of: list, add, remove, rename | list |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |