git diagnose

Setup & Creating Projects

Collect diagnostics about the repository in a zip file


The 'git diagnose' command gathers information about the repository — object counts, pack sizes, directory layout, configuration and system details — into a zip archive to help others troubleshoot performance or corruption problems. It does not include your file contents.

Synopsis

git diagnose [-o <path>] [-s <format>] [--mode=<mode>]
[ ] optional| or<arg> placeholder... repeatable--flag option

Examples

Create diagnostics

git diagnose

git-diagnostics-<date>.zip.


Include more

git diagnose --mode=all

Also a copy of .git metadata.

Workflow Examples

1
git diagnose

Collect

2
Share the zip

Send it with a description

Troubleshooting

The zip is large

Cause: --mode=all copies internal files

Use the default stats mode

Tips & Pitfalls

Best Practices

  • ✓Check what the archive contains before sharing it.

FAQ

A:

Not in the default mode.