git-remote
Manage Git remote repositories by adding, removing, renaming, displaying, updating URLs, and pruning stale references to organize your project's remote connections.
Instructions
Git remote management tool for managing remote repositories. Supports add, remove, rename, show, set-url, and prune operations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The remote operation to perform | |
all | No | Show all remotes (for show action) | |
dryRun | No | Show what would be pruned without actually pruning (for prune action) | |
fetch | No | Fetch after adding remote (for add action) | |
name | No | Remote name (required for most operations) | |
newName | No | New remote name (required for rename operation) | |
projectPath | Yes | Absolute path to the project directory | |
push | No | Set push URL instead of fetch URL (for set-url action) | |
url | No | Remote URL (required for add and set-url operations) | |
verbose | No | Show verbose output with URLs (for show action) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The remote operation to perform",
"enum": [
"add",
"remove",
"rename",
"show",
"set-url",
"prune",
"list"
],
"type": "string"
},
"all": {
"description": "Show all remotes (for show action)",
"type": "boolean"
},
"dryRun": {
"description": "Show what would be pruned without actually pruning (for prune action)",
"type": "boolean"
},
"fetch": {
"description": "Fetch after adding remote (for add action)",
"type": "boolean"
},
"name": {
"description": "Remote name (required for most operations)",
"type": "string"
},
"newName": {
"description": "New remote name (required for rename operation)",
"type": "string"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"push": {
"description": "Set push URL instead of fetch URL (for set-url action)",
"type": "boolean"
},
"url": {
"description": "Remote URL (required for add and set-url operations)",
"type": "string"
},
"verbose": {
"description": "Show verbose output with URLs (for show action)",
"type": "boolean"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}