ghorgsync

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 Imported by: 0

README

GitHub release License Active Go Report Card

ghorgsync

Clone and update all organization repositories in one folder, with clean-state and branch audits plus warnings for stray content.

Why ghorgsync?

Working with many repositories across a GitHub organization means constantly cloning new repos, pulling updates, and keeping track of local state. ghorgsync automates this into a single command that keeps your local directory in sync with your organization's repositories—safely and non-destructively.

Key Features

  • One command sync — clones missing repos, fetches and pulls existing ones, all in one pass
  • Non-destructive — never deletes directories, discards local changes, or runs destructive git commands
  • Dirty repo detection — reports staged/unstaged changes with file details and line counts
  • Branch drift audit — detects when a repo isn't on its default branch and corrects clean repos automatically
  • Stray content warnings — identifies unknown folders and excluded-but-present repos in your directory
  • Quiet by default — only prints actions taken and findings; verbose mode available for full detail
  • Colorized output — structured, color-coded terminal output (honors NO_COLOR)

Quick Start

  1. Install

    go install github.com/UnitVectorY-Labs/ghorgsync@latest
    
  2. Configure: create a .ghorgsync file in the directory where your repos live:

    organization: my-org
    
  3. Authenticate: set a GitHub token (or login with gh auth login):

    export GITHUB_TOKEN=ghp_...
    
  4. Run

    cd ~/repos
    ghorgsync
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL