git-workflow
Manage Git repositories locally and remotely with operations including init, commit, sync, backup, and repository management for GitHub and Gitea platforms.
Instructions
Core Git workflow tool for local and remote Git operations. Supports init, status, commit, sync, backup, create, list, get, update, delete, fork, and search operations. Provides comprehensive Git repository management with both local and remote provider support (GitHub/Gitea).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The Git operation to perform. Local operations: init, status, commit, sync, backup. Remote operations: create, list, get, update, delete, fork, search (require provider parameter). | |
backupPath | No | Path for backup file (for backup action) | |
bare | No | Initialize as bare repository (for init action) | |
branch | No | Branch name for sync | |
description | No | Repository description (for create/update actions) | |
files | No | Specific files to commit (default: all changes) | |
force | No | Force operation (for sync action) | |
message | No | Commit message (required for commit action) | |
name | No | Repository name (for create action) | |
owner | No | Repository owner (for get/update/delete/fork actions) | |
private | No | Create private repository (for create action) | |
projectPath | Yes | Absolute path to the project directory | |
provider | No | Provider for remote operations (required for remote operations) | |
query | No | Search query (for search action) | |
remote | No | Remote name for sync (default: origin) | |
repo | No | Repository name (for get/update/delete/fork actions) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The Git operation to perform. Local operations: init, status, commit, sync, backup. Remote operations: create, list, get, update, delete, fork, search (require provider parameter).",
"enum": [
"init",
"status",
"commit",
"sync",
"backup",
"create",
"list",
"get",
"update",
"delete",
"fork",
"search"
],
"type": "string"
},
"backupPath": {
"description": "Path for backup file (for backup action)",
"type": "string"
},
"bare": {
"description": "Initialize as bare repository (for init action)",
"type": "boolean"
},
"branch": {
"description": "Branch name for sync",
"type": "string"
},
"description": {
"description": "Repository description (for create/update actions)",
"type": "string"
},
"files": {
"description": "Specific files to commit (default: all changes)",
"items": {
"type": "string"
},
"type": "array"
},
"force": {
"description": "Force operation (for sync action)",
"type": "boolean"
},
"message": {
"description": "Commit message (required for commit action)",
"type": "string"
},
"name": {
"description": "Repository name (for create action)",
"type": "string"
},
"owner": {
"description": "Repository owner (for get/update/delete/fork actions)",
"type": "string"
},
"private": {
"description": "Create private repository (for create action)",
"type": "boolean"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"provider": {
"description": "Provider for remote operations (required for remote operations)",
"enum": [
"github",
"gitea",
"both"
],
"type": "string"
},
"query": {
"description": "Search query (for search action)",
"type": "string"
},
"remote": {
"description": "Remote name for sync (default: origin)",
"type": "string"
},
"repo": {
"description": "Repository name (for get/update/delete/fork actions)",
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}