Positional arguments
Directory to scan for git repositories. The tool will recursively search for
.git folders up to the specified depth.Flags
Search depth
Short form: Note: The search stops when a
-LMaximum directory depth to search for repositories. Depth 0 checks only the specified path, depth 1 checks immediate subdirectories, and so on..git folder is found, so nested repositories within a repository are not scanned.Filtering
Short form: Useful for finding repositories with work in progress before switching contexts.
-dOnly show repositories with uncommitted changes. This includes both tracked modified files and untracked files.Short form: Useful for identifying experimental or local-only projects that may need to be backed up or pushed to a remote.
-lOnly show repositories with no remotes configured (local-only repositories).Short form: Example output with unpushed commits:Performance note: This flag requires resolving the upstream tracking branch for each repository, which is slower than the default behavior. Only use this flag when you need to check for unpushed commits.
-uInclude unpushed commit information in the output. Shows how many commits the current branch is ahead of its upstream tracking branch.Output format
Short form: Raw output example:
-rOutput raw repository paths only, one per line, with no decorations or summary. Useful for piping to other commands.