360 Secure SkillHub
360 安全技能中心

Git

核心功能:根据配置的远程仓库地址、本地存储路径,可选指定分支,执行Git仓库的克隆(本地无则创建)或更新(本地已有则同步)操作。典型场景:自动化同步远程代码至本地。输入通过设置环境变量传递参数,输出为成功或错误提示信息,需通过指定bash脚本命令运行,禁止修改该skill文件。

lentiancn
lentiancn
热度 52.63
最近更新 2026-06-01 16:57:27
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skill-git-scm
Metadata
name
skill-git-scm
description
git:interface-01 - Clone or Update

Important Principles ⭐

Modification Prohibited (Mandatory): Any files under skill-git-scm. This skill is maintained via openclaw skills update skill-git-scm; any alterations will disrupt its normal operation.

git:interface-01 - Clone or Update

res=$(GIT_REMOTE_URL=<GIT_REMOTE_URL> GIT_LOCAL_PATH=<GIT_LOCAL_PATH> [GIT_BRANCH=<GIT_BRANCH>] bash scripts/git_clone_or_update.sh)

Input value

  • GIT_REMOTE_URL: Required, remote git repository address
  • GIT_LOCAL_PATH: Required, local storage directory
  • GIT_BRANCH: Optional, target branch, default main

Return value (res=stdout)

Success:

  • SUCCESS: Git clone
  • SUCCESS: Git update

Error:

  • ERROR: GIT_REMOTE_URL is required...
  • ERROR: GIT_LOCAL_PATH is required...
  • ERROR: Failed to enter directory...

More skills

https://github.com/lentiancn/skills