Newer than bugreport. More artifacts.
git diagnose bundles a zip archive of repo diagnostics: object counts, packed-refs sizes, alternates, hooks, config. It is the modern successor to git bugreport for when you need to hand evidence to upstream maintainers.
Think 'support bundle' for a Git repo: one zip with everything a maintainer needs to see what your repo looks like, without you having to ship the whole thing.
git diagnose [-o <output-directory>] [-s <suffix>]
[--mode=(stats|all)]| Flag | What it does |
|---|---|
-o, --output-directory <dir> | Where to drop the zip (default: current dir) |
-s, --suffix <suffix> | Custom filename suffix (replaces the default timestamp) |
--mode=stats | Default: counts, sizes, config, hooks list - no object payloads |
--mode=all | ⚠️ Includes packed-refs and reachable-pack contents - can leak data |
git diagnosegit diagnose -o /tmpgit diagnose -s broken-fetch-2026git diagnose --mode=all -o /tmpHit each option, then Check answers. Score is recorded; Next is always open.