| name | git-sync |
| description | Git operations on VPS repos — status, commit, push, pull, diff, branch management |
| user-invocable | true |
Git Sync — arifOS_bot
Triggers: "git", "git sync", "commit", "push", "pull", "diff", "branch",
"git status", "sync repo", "backup workspace", "gitclaw"
Repos on This VPS
| Alias | Path | Remote | Push Protocol |
|---|
arifos | /mnt/arifos | github.com/ariffazil/arifOS | HTTPS + GH_TOKEN |
workspace | ~/.openclaw/workspace | github.com/ariffazil/openclaw-workspace | HTTPS + GH_TOKEN |
apex | /mnt/apex | github.com/ariffazil/APEX-THEORY | HTTPS + GH_TOKEN |
Daily Status Check
git -C /mnt/arifos status --short
git -C /mnt/arifos log --oneline -5
git -C ~/.openclaw/workspace status --short
git -C ~/.openclaw/workspace log --oneline -3
Commit + Push to arifOS
git -C /mnt/arifos diff --stat
git -C /mnt/arifos add core/ aaa_mcp/ aclip_cai/ tests/
git -C /mnt/arifos commit -m "feat/fix/docs: description
Co-authored-by: arifOS_bot <arifos_bot@arif-fazil.com>"
git -C /mnt/arifos remote set-url origin "https://${GH_TOKEN}@github.com/ariffazil/arifOS.git"
git -C /mnt/arifos push origin main
git -C /mnt/arifos remote set-url origin "https://github.com/ariffazil/arifOS.git"
Pull Latest (sync from remote)
git -C /mnt/arifos fetch origin
git -C /mnt/arifos pull --rebase origin main
git -C ~/.openclaw/workspace pull --rebase origin main
for REPO in /mnt/arifos /mnt/apex; do
echo "=== Syncing $REPO ==="
git -C "$REPO" pull --rebase origin main 2>&1 || echo "FAILED: $REPO"
done
Workspace Backup (manual trigger)
bash ~/.openclaw/workspace/scripts/backup-to-github.sh
cd ~/.openclaw/workspace
git add SPEC.md AGENTS.md DR_RUNBOOK.md skills/ memory/
git commit -m "chore: manual workspace sync $(date -u +%Y-%m-%dT%H:%M:%SZ)"
git remote set-url origin "https://${GH_TOKEN}@github.com/ariffazil/openclaw-workspace.git"
git push origin main
git remote set-url origin "https://github.com/ariffazil/openclaw-workspace.git"
Branch Management
git -C /mnt/arifos checkout -b feature/my-feature
git -C /mnt/arifos branch -a
git -C /mnt/arifos checkout main
git -C /mnt/arifos branch -d feature/my-feature
Diff & History
git -C /mnt/arifos diff HEAD
git -C /mnt/arifos diff --cached
git -C /mnt/arifos log --oneline --graph --decorate -10
git -C /mnt/arifos log --follow --oneline -- aaa_mcp/server.py
git -C /mnt/arifos fetch origin
git -C /mnt/arifos log --oneline HEAD..origin/main
Conflict Resolution
git -C /mnt/arifos status | grep "both modified"
git -C /mnt/arifos checkout --theirs <file>
git -C /mnt/arifos add <file>
git -C /mnt/arifos checkout --ours <file>
git -C /mnt/arifos add <file>
git -C /mnt/arifos rebase --abort
VAULT999 Special Handling
git -C /mnt/arifos add -f VAULT999/vault999.jsonl
git -C /mnt/arifos commit -m "vault: seal $(date +%Y%m%d)"
Safe Defaults (F1/F11)
- Always
git pull --rebase before push (avoids diverged history)
- Never
git push --force to main → 888_HOLD
- Never
git reset --hard with uncommitted changes → 888_HOLD
- Never commit
.env, openclaw.json, model weights, *.safetensors
- Safe.directory for
/mnt/arifos is set: git config --global --add safe.directory /mnt/arifos
arifOS_bot — git-sync skill