跳到正文
TakoAPI
返回技能列表

gitbackup

由 trumppo 提供

Web & Frontend Development
851下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Create a local Git bundle backup of the OpenClaw workspace repository.

描述

该技能的功能

Creates a self-contained Git bundle of the OpenClaw workspace repository and saves it to `/root/.openclaw/backups`. The bundle filename includes a UTC timestamp. Older backups are not deleted.

A Git bundle is fully self-contained and portable, so the backup works without network access or a remote host.

何时使用

  • Backing up Git history before a risky rebase
  • Preserving workspace state before a major refactor
  • Creating a point-in-time snapshot before deploying changes
  • Archiving project history for offline access
  • Safeguarding all refs and commits before a destructive branch operation

示例工作流

输入

User asks: Back up my Git repository

智能体
  1. 1

    Runs git-backup.sh from the gitbackup skills directory

  2. 2

    Verifies the workspace is a valid Git repository

  3. 3

    Creates a timestamped bundle file in /root/.openclaw/backups

  4. 4

    Prints the bundle file path and its size

输出

Bundle saved to /root/.openclaw/backups/workspace-20260319T120000Z.bundle (2.4 MB)

安装

clawhub install trumppo/gitbackup

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接