Skip to content
Agentmart
Submit a tool

git-sync

Git operations on VPS repos — status, commit, push, pull, diff, branch management

Skill by ariffazil

IndexedAGPL-3.0★ 54
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ariffazil-git-sync

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Git operations on VPS repos — status, commit, push, pull, diff, branch management

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/git-sync

What's inside

Skill name
git-sync
Description
Git operations on VPS repos — status, commit, push, pull, diff, branch management
License
AGPL-3.0
Instructions
157 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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

```bash
# arifOS repo
git -C /mnt/arifos status --short
git -C /mnt/arifos log --oneline -5

# Workspace
git -C ~/.openclaw/workspace status --short
git -C ~/.openclaw/workspace log --oneline -3
```

## Commit + Push to arifOS

```bash
# 1. See what changed
git -C /mnt/arifos diff --stat

# 2. Stage specific files (never stage .env or secrets)
git -C /mnt/arifos add core/ aaa_mcp/ aclip_cai/ tests/

# 3. Commit
git -C /mnt/arifos commit -m "feat/fix/docs: description

Co-authored-by: arifOS_bot <arifos_bot@arif-fazil.com>"

# 4. Push via HTTPS with GH_TOKEN
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)

```bash
# arifOS — rebase style (clean history)
git -C /mnt/arifos fetch origin
git -C /mnt/arifos pull --rebase origin main

# Workspace
git -C ~/.openclaw/workspace pull --rebase origin main

# Both at once
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
# Full backup to GitHub (same as nightly cron)
bash ~/.openclaw/workspace/scripts/backup-to-github.sh

# Quick backup — just workspace docs + skills
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

```bash
# Create feature branch
git -C /mnt/arifos checkout -b feature/my-feature

# List branches
git -C /mnt/arifos branch -a

# Switch branch
git -C /mnt/arifos checkout main

# Delete merged branch (F1: safe, branch exists on remote)
git -C /mnt/arifos branch -d feature/my-feature

# 888_HOLD: Force delete unmerged branch
# git branch -D → requires F13 confirmation
```

## Diff & History

```bash
# What changed since last commit
git -C /mnt/arifos diff HEAD

# What's staged
git -C /mnt/arifos diff --cached

# Recent history (pretty)
git -C /mnt/arifos log --oneline --graph --decorate -10

# Who changed a file
git -C /mnt/arifos log --follow --oneline -- aaa_mcp/server.py

# Compare with remote
git -C /mnt/arifos fetch origin
git -C /mnt/arifos log --oneline HEAD..origin/main
```

From ariffazil/arifOS, AGPL-3.0.

More from ariffazil/arifOS

Signals

Stars
54
Forks
9
Open issues
3
Contributors
98
Last commit (this folder)
May 11, 2026 (5 months ago)
Last release
Oct 17, 2026 (12 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ariffazil

Cite this page

git-sync skill. Agent Mart. https://agentmart.dev/skills/ariffazil-git-sync (last updated 2026-10-24)