git-sync

Audit, fetch, pull, and push multiple git repositories across local directories.

Updated Jul 5, 2026
One-click install
npx skills add https://github.com/danwan/coding-agent --skill git-sync-danwan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-sync
Source: https://github.com/danwan/coding-agent/tree/main/sources/skills/git-sync
Command: npx skills add https://github.com/danwan/coding-agent --skill git-sync-danwan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gh, jq, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the problem of managing multiple git repositories across different machines by providing a unified, automated way to audit, pull, push, and clean up branches without manual intervention.

Core Features & Use Cases

  • Unified Audit: Generates a comprehensive status report for all repositories in a directory, including branch health, remote-only branches, and open PRs.
  • Automated Sync: Handles start-of-day pulls and end-of-day pushes, including intelligent handling of untracked files and branch tracking.
  • Use Case: Use this at the end of your workday to automatically stage, commit, and push changes across all your active projects, ensuring your work is backed up and synced.

Quick Start

Run the git-sync audit command to see the current status of all repositories in your working directory.

Frequently Asked Questions about git-sync

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

FAQPage Schema
How do I sync multiple git repositories across different machines automatically?

To sync multiple git repositories across machines, you can automate audit, fetch, pull, and push operations across local directories to maintain consistency. This handles complex states like diverged branches and untracked files for multi-machine workflows.

What is the best way to audit the status of all my git repositories at once?

Auditing the status of all git repositories at once involves generating a comprehensive report for all repositories in a directory. This report includes branch health, remote-only branches, and open pull requests to provide full operational visibility.

How do I automatically stage, commit, and push changes to all my projects at the end of the day?

To automatically stage, commit, and push changes across all active projects, you run an automated sync operation at the end of your workday. This ensures your work is backed up and synced without manual intervention.

Do I need the GitHub CLI to manage git repository synchronization?

You do not need the GitHub CLI for basic git synchronization, but it is required optionally for pull request integration. You also need git, jq, and python3 installed to manage repository consistency and run the synchronization scripts.

How does automated git sync handle untracked files and diverged branches?

Automated git sync manages complex git states by intelligently handling untracked files, diverged branches, and remote-only tracking. This ensures safe synchronization and prevents data loss during multi-machine development workflows.

Can I use this to pull changes across all my local directories at the start of the day?

Yes, you can perform automated start-of-day pulls to fetch and integrate changes across all your local directories. This synchronizes your local environment with remote repositories before you begin your work.