OpenClaw · Skill
A Git Bundle
Create a self-contained Git bundle of the workspace repo and store it in /root/.openclaw/backups .
Install
Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.
Primary command
clawhub install trumppo/gitbackupClawHub installer
npx clawhub@latest install trumppo/gitbackupOpenClaw CLI
openclaw skills install trumppo/gitbackupDirect OpenClaw install
openclaw install trumppo/gitbackupWhat this skill does
Create a self-contained Git bundle of the workspace repo and store it in /root/.openclaw/backups .
Why it matters
A Git bundle is fully self-contained and portable, so the backup works without network access or a remote host.
Typical use cases
- 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
Source instructions
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.