Git Remote
git_remoteManage Git remote repositories: list, add, remove, rename, or configure remote URLs to control repository connections.
Instructions
Manage remote repositories: list remotes, add new remotes, remove remotes, rename remotes, or get/set remote URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| mode | No | The remote operation to perform. | list |
| name | No | Remote name for add/remove/rename/get-url/set-url operations. | |
| url | No | Remote URL for add/set-url operations. | |
| newName | No | New remote name for rename operation. | |
| push | No | Set push URL separately (for set-url operation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| mode | Yes | Operation mode that was performed. | |
| remotes | No | List of remotes (for list mode). | |
| url | No | Remote URL (for get-url mode). | |
| added | No | Added remote (for add mode). | |
| removed | No | Removed remote name (for remove mode). | |
| renamed | No | Rename information (for rename mode). |