微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📦

一键打包工作区版本历史

gitbackup · vv0.1.0
开发 安全 S+ 级 作者 Trumppo 公开目录收录
2.6k 下载 837 安装 8.1k 收藏 56.1k 浏览

简介

OpenClaw 官方提供的本地 Git 备份方案,一键打包工作区完整版本历史至本地安全存储,确保代码资产零泄露风险。

原始描述

Create a local Git bundle backup of the OpenClaw workspace repository. Use when running /gitbackup in Telegram or when the user asks to back up Git history/refs to a local file.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/gitbackup/
其它 Agent解压到它自己的 skills 目录,目录名用 gitbackup

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: gitbackup description: Create a local Git bundle backup of the OpenClaw workspace repository. Use when running /gitbackup in Telegram or when the user asks to back up Git history/refs to a local file.

Git Backup (local bundle)

Overview

Create a self-contained Git bundle of the workspace repo and store it in /root/.openclaw/backups.

Quick start

Run the bundled script:

bash /root/.openclaw/workspace/skills/gitbackup/scripts/git-backup.sh

Output

Print the bundle path and size. The bundle filename includes UTC timestamp.

Notes

  • If the workspace is not a Git repo, exit with a clear error.
  • Do not delete older bundles.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

gitbackupdevopsdevelopment-engineeringautomation

同类 Skill