info

Displays detailed information about target repositories.

Usage

git-wrangler info [--repo <path>] [--json] [--no-fetch] [--guided]

What it does

Discovers Git worktrees under the current directory, or targets exactly one worktree with --repo, and prints an inventory for each repository: status, license presence, current branch, ahead/behind state, branches, remotes, commit counts, recent commit data, top authors, and largest files.

This command can be verbose across large workspaces. Use it for audits and inventory; use status for a compact daily dashboard.

By default, info first runs git fetch --prune origin for each target repository so branch and ahead/behind details use fresh remote-tracking refs. Use --no-fetch for offline or local-only runs.

Options

FlagRequiredDescription
--repo <path>OptionalTarget exactly one repository instead of discovering recursively.
--jsonOptionalEmit one JSON document on stdout. Suppresses normal human summary, colors, and progress.
--no-fetchOptionalUse local remote-tracking refs without fetching origin first.
--guidedOptionalInteractively configure command options. Cannot be combined with --json.

Examples

# Analyze all repositories in the current directory
git-wrangler info

# Analyze a single repository
git-wrangler info --repo /path/to/repo

# Output repository information in JSON format
git-wrangler info --json

# Use local remote-tracking refs without refreshing origin
git-wrangler info --no-fetch

Notes

  • Fetch failures are per-repository failures; JSON mode reports them in repositories[].
  • JSON output is intentionally smaller than human output and does not include top authors or largest files.