360 Secure SkillHub
360 安全技能中心

Git Deploy

该 Skill 通过 scripts/deploy.sh 将工作区改动全部暂存,使用传入的提交信息执行提交,并推送到当前分支所在的 Git 远程仓库。仓库地址与访问令牌为预先写入的固定值,脚本假设在项目根目录运行,不涉及构建、测试、分支切换或冲突处理。

sirenday
sirenday
热度 60.63
最近更新 2026-05-18 12:25:08
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / DevOps / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add git-deploy
Metadata
name
git-deploy
description
Simple deployment skill for local git operations. Use when you need to add, commit, and push changes to the Git repository. Designed for quick local deployments (Tasks

Git Deploy

Overview

This skill automates the standard git workflow for local development:

  • Stage all changes
  • Commit with a message
  • Push to the current branch

The script uses pre-configured repository URL and token.

Usage

scripts/deploy.sh "feat: Task #X - Description"

Repository

Notes

  • The script assumes it is run in the project root.
  • If you need to push to a specific branch, modify the script or commit message.