git-sync
Synchronize Git repositories between local and remote providers. Perform sync operations or check status across GitHub and Gitea with configurable merge strategies and branch management.
Instructions
Advanced Git synchronization tool for intelligent sync and status operations. Supports both local Git synchronization and remote provider synchronization.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The Git sync operation to perform | |
branch | No | Branch to sync (default: current branch) | |
checkAhead | No | Check commits ahead/behind (default: true for status operation) | |
detailed | No | Show detailed sync status (for status operation) | |
dryRun | No | Show what would be done without executing (for sync operation) | |
force | No | Force sync (use with caution, may override uncommitted changes) | |
includeRemote | No | Include remote status information (for status operation) | |
owner | No | Repository owner (auto-detected if not provided, for remote operations) | |
projectPath | Yes | Absolute path to the project directory | |
provider | No | Provider for remote operations (optional for local-only operations) | |
remote | No | Remote to sync with (default: origin) | |
repo | No | Repository name (auto-detected if not provided, for remote operations) | |
strategy | No | Sync strategy (default: merge) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The Git sync operation to perform",
"enum": [
"sync",
"status"
],
"type": "string"
},
"branch": {
"description": "Branch to sync (default: current branch)",
"type": "string"
},
"checkAhead": {
"description": "Check commits ahead/behind (default: true for status operation)",
"type": "boolean"
},
"detailed": {
"description": "Show detailed sync status (for status operation)",
"type": "boolean"
},
"dryRun": {
"description": "Show what would be done without executing (for sync operation)",
"type": "boolean"
},
"force": {
"description": "Force sync (use with caution, may override uncommitted changes)",
"type": "boolean"
},
"includeRemote": {
"description": "Include remote status information (for status operation)",
"type": "boolean"
},
"owner": {
"description": "Repository owner (auto-detected if not provided, for remote operations)",
"type": "string"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"provider": {
"description": "Provider for remote operations (optional for local-only operations)",
"enum": [
"github",
"gitea",
"both"
],
"type": "string"
},
"remote": {
"description": "Remote to sync with (default: origin)",
"type": "string"
},
"repo": {
"description": "Repository name (auto-detected if not provided, for remote operations)",
"type": "string"
},
"strategy": {
"description": "Sync strategy (default: merge)",
"enum": [
"merge",
"rebase",
"fast-forward"
],
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}