← 返回
开发者工具 中文

auto-git

Commit and push local project changes to GitHub, with optional repo creation and deployment hints.
将本地项目更改提交并推送到 GitHub,支持可选的仓库创建和部署提示。
cruciata
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 600
下载
💾 12
安装
1
版本
#latest

概述

GitHub Deploy Skill

This skill provides a reusable PowerShell script for Windows to automate:

  1. Git checks
  2. Commit creation
  3. Push to remote branch
  4. Optional GitHub repository creation (via GitHub CLI)
  5. Optional deployment hints (for Streamlit flow)

Included file

  • github-deploy-skill.ps1

Parameters

  • -CommitMessage (required): commit message text
  • -Repo (optional): GitHub repository in owner/repo format
  • -Branch (optional): target branch, default main
  • -CreateRepo (optional switch): create repo with gh if missing
  • -SkipDeployHint (optional switch): do not print deployment hint

Usage

From any Git project folder:

powershell -ExecutionPolicy Bypass -File .\github-deploy-skill.ps1 -CommitMessage "feat: update" -Repo "owner/repo" -Branch "main"

Create repository automatically:

powershell -ExecutionPolicy Bypass -File .\github-deploy-skill.ps1 -CommitMessage "init" -Repo "owner/new-repo" -CreateRepo

Expected output

  • Success: commit and push completed
  • Failure: explicit error with reason (missing command, auth, push/network, remote config)

Requirements

  • Git installed and available in PATH
  • Network access to remote Git host
  • If -CreateRepo is used: GitHub CLI (gh) installed and authenticated

Notes

  • Works with repositories that do not yet have a first commit.
  • If origin does not exist, pass -Repo and the script will add it automatically.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 05:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,347

social-auto-tool-builder-1.1.0

cruciata
复用“小红书自动回复项目”实战经验,快速构建新的本地AI自动化工具(含多平台选择器映射模板)
★ 5 📥 1,323
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,375