Skip to main content

Crate git_same

Crate git_same 

Source
Expand description

§Git-Same - Mirror GitHub org/repo structure locally

Git-Same is a CLI tool that discovers all GitHub organizations and repositories you have access to, then clones them to your local filesystem maintaining the org/repo directory structure.

§Features

  • Multi-Provider Support: Works with GitHub (more providers coming soon)
  • Parallel Operations: Clones and syncs repositories concurrently
  • Smart Filtering: Filter by archived status, forks, organizations
  • Incremental Sync: Only fetches/pulls what has changed
  • Progress Reporting: Beautiful progress bars and status updates

§Available Commands

The tool can be invoked using any of these names (all installed by default):

  • git-same - Main command
  • gitsame - No hyphen variant
  • gitsa - Short form
  • gisa - Shortest variant
  • git same - Git subcommand (requires git-same in PATH)

§Example

# Initialize configuration
git-same init

# Set up a workspace
git-same setup

# Sync repositories (clone new + fetch existing)
git-same sync --dry-run
git-same sync

# Show status
git-same status

# Also works as git subcommand
git same sync

Modules§

app
Application entry layers.
auth
Authentication management for gisa.
banner
ASCII banner for gisa — shared across CLI and TUI.
cache
Cache and history persistence.
checks
System requirements checking.
cli
CLI argument parsing using clap.
commands
Command handlers for the CLI subcommands.
config
Configuration management for git-same.
discovery
Discovery orchestration module.
domain
Domain logic (pure business rules).
errors
Error types for the gisa application.
git
Git operations module.
infra
Infrastructure adapters (I/O, provider and git bindings).
operations
Core clone/sync operation managers.
output
Output and progress reporting.
prelude
Re-export commonly used types for convenience.
provider
Git hosting provider implementations.
setup
Interactive setup wizard for creating workspace configurations.
tui
Full-screen TUI for git-same.
types
Core type definitions for gisa.
workflows
Use-case workflows.