Skip to main content
The init command is the entry point for using repr. It scans a directory for git repositories and sets up the local configuration.

Usage

repr init [PATH]

Arguments

ArgumentTypeDescription
PATHPathDirectory to scan. Defaults to ~/code if not provided.

Examples

Scan your home code directory:
repr init ~/code
Scan current directory:
repr init .

Behavior

  1. Scans the target directory recursively for .git folders.
  2. Filters out archived or empty repositories.
  3. Prompts you to confirm which repositories to track.
  4. Saves the configuration to ~/.repr/config.json.