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 diagnosegit-diagnostics-<date>.zip.
Include more
git diagnose --mode=allAlso a copy of .git metadata.
Workflow Examples
1
git diagnoseCollect
2
Share the zipSend 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.