Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

gitbackup

bởi trumppo

Web & Frontend Development
851Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

User asks: Back up my Git repository

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install trumppo/gitbackup

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết