git-sync-checker

Check local and remote git synchronization states and generate reports.

2|Updated Nov 2, 2025
One-click install
npx skills add https://github.com/alongor666/chexianduoweifenxi --skill git-sync-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-sync-checker
Source: https://github.com/alongor666/chexianduoweifenxi/tree/main/.claude/skills/git-sync-checker
Command: npx skills add https://github.com/alongor666/chexianduoweifenxi --skill git-sync-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

帮助在不同设备之间切换开发时,快速了解本地修改、未提交、未推送以及远程更新的状态,避免数据丢失和冲突。

Core Features & Use Cases

  • 自动检测本地修改、未提交、未推送和远程落后情况
  • 给出安全的同步建议与可执行命令(推送、拉取、变基等)
  • 生成可直接复制执行的同步报告,便于日常切换任务

Quick Start

触发后自动扫描当前分支状态,输出清单与命令建议;根据报告执行相应的 git 操作以完成同步。

Frequently Asked Questions about git-sync-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my local code is synced with GitHub across multiple devices?

Git sync checker automatically detects uncommitted changes, unpushed commits, and remote updates by running git status, git fetch, and git log comparisons. It generates a structured report showing exactly what's out of sync between your local repository and GitHub, helping you understand the state before switching devices.

What git commands should I run to sync between office and home computers?

After scanning your branch state, git sync checker provides copy-ready, safe commands for pushing, pulling, and rebasing. The report lists all necessary synchronization steps in executable order, eliminating manual command construction and reducing the risk of data loss when handoff switching between computers.

Can git sync checker detect unpulled changes from remote branches?

Yes, git sync checker identifies when your local branch is behind the remote by comparing git log output after fetching. It detects unpulled changes alongside uncommitted and unpushed modifications, giving you a complete picture of sync discrepancies across all three states.

How do I avoid losing work when switching between development computers?

Git sync checker prevents data loss by scanning for uncommitted, unpushed, and unpulled changes before you switch devices. It generates safe, reversible synchronization recommendations and ready-to-copy commands, so you complete all necessary git operations before transitioning to another computer.

What information does the synchronization report include?

The report shows local modifications, staged but uncommitted changes, commits waiting to push, and remote updates waiting to pull. Each section includes the affected files or commits and corresponding git commands you can execute immediately to resolve discrepancies.

Does git sync checker work with branching workflows?

Yes, git sync checker analyzes the current branch state, including local and remote tracking branches. It detects sync issues specific to your active branch and provides branching-aware commands, supporting multi-branch development across devices.