sync-to-origin

Community

Align local workspaces with origin across devices.

Authorstodesirnit976-bit
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill automates aligning a local Git workspace with the remote origin by backing up local state, fetching with prune, and resetting branches to origin.

Core Features & Use Cases

  • Backup local state to .git/codex-sync-backups (bundle, diff, and optional untracked backups)
  • Fetch from origin with prune to remove remote-tracking references that no longer exist
  • Reset local branches to origin/<branch>, discarding local divergences
  • Remove local branches that no longer exist on the remote to maintain consistency

Quick Start

Run the synchronization script against a Git repository to align the current workspace with origin: pwsh -NoProfile -ExecutionPolicy Bypass -File custom/sync-to-origin/scripts/sync-to-origin.ps1 -Yes

Dependency Matrix

Required Modules

git

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sync-to-origin
Download link: https://github.com/stodesirnit976-bit/Skills/archive/main.zip#sync-to-origin

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.