← ClaudeAtlas

sync-gitlisted

Safely synchronize safe uncommitted work and local/remote branch state across selected repositories and worktrees; discard and gitignore recommendations always require human approval.
sergeiwallace/skills · ★ 0 · Code & Development · score 73
Install: claude install-skill sergeiwallace/skills
# sync-git This skill may be self-invoked. With no target it assesses the repository main worktree first and then the worktree containing the current session. A linked worktree is integrated with the current fetched trunk (`main` by default) before its own remote branch is reconciled, so an abandoned feature ref cannot become its integration base. It can also discover an explicitly bounded broader scope. ```bash uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync --dry-run uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync --allow-deletions uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync worktree:/absolute/worktree uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync all-worktrees:/absolute/repo uv run --script "${CLAUDE_SKILL_DIR}/scripts/sync_git.py" sync all-repos:~/projects ``` Extra targets must be explicit: `repo:<path>`, `worktree:<path>`, `branch:<repo-path>@<branch>`, an exact registered worktree path, `all-worktrees:<repo-path>`, or `all-repos:<directory>`. Discovery never defaults to the fleet: `all-repos` requires the directory explicitly. The command has no force, discard, ignore, side-selection, or administrative override. It may commit all byte-vetted uncommitted changes, non-force-push local commits, and fast-forward or cleanly merge fetched remote commits after its byte veto, anchor, isolated-index, local readback, and remote readback checks. Whe