Dumps environment, version, config — for filing bugs upstream.
git bugreport produces a pre-filled bug report — Git version, build details, OS, key config, and (optionally) repo diagnostics — so you stop wasting maintainers' time guessing your environment.
A git --version on steroids that writes a Markdown-ish file ready to paste into the Git mailing list or an issue tracker. Pure data dump, no upload, no telemetry.
git bugreport [-o | --output-directory <path>]
[-s | --suffix <format> | --no-suffix]
[--diagnose[=<mode>]]| Flag | What it does |
|---|---|
`-o <dir>` / `--output-directory <dir>` | Where to write the report. Defaults to the current directory. |
`-s <fmt>` / `--suffix <fmt>` | strftime-style suffix for the filename (default %Y-%m-%d-%H%M). |
`--no-suffix` | Omit the suffix entirely — file becomes git-bugreport.txt. |
`--diagnose[=stats|all]` | Also produce a zip archive with repo diagnostics. stats = sizes/object counts; all = adds loose-ref listings and packed-refs. !all may include sensitive ref names. |
--diagnose=stats) for a perf complaint.git bugreportgit bugreport -o ~/reportsgit bugreport --no-suffix -o /tmpgit bugreport --diagnose=stats -o /tmpgit bugreport --diagnose=stats before pinging maintainers about slowness — saves a round trip.git diagnose when you only want the zip and not the prose template.--diagnose=all includes every ref name — fine for OSS, leaky on private repos.Hit each option, then Check answers. Score is recorded; Next is always open.