2 .\" Title: git-diagnose
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.48.1.157.g3b0d05c4a7
10 .TH "GIT\-DIAGNOSE" "1" "2025-01-29" "Git 2\&.48\&.1\&.157\&.g3b0d05" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-diagnose \- Generate a zip archive of diagnostic information
35 \fIgit diagnose\fR [(\-o | \-\-output\-directory) <path>] [(\-s | \-\-suffix) <format>]
40 Collects detailed information about the user\(cqs machine, Git client, and repository state and packages that information into a zip archive\&. The generated archive can then, for example, be shared with the Git mailing list to help debug an issue or serve as a reference for independent debugging\&.
42 By default, the following information is captured in the archive:
52 \fIgit version \-\-build\-options\fR
63 The path to the repository root
74 The available disk space on the filesystem
85 The name and size of each packfile, including those in alternate object stores
96 The total count of loose objects, as well as counts broken down by \&.\fBgit/objects\fR
100 Additional information can be collected by selecting a different diagnostic mode using the \fB\-\-mode\fR option\&.
102 This tool differs from \fBgit-bugreport\fR(1) in that it collects much more detailed information with a greater focus on reporting the size and data shape of repository contents\&.
105 \-o <path>, \-\-output\-directory <path>
107 Place the resulting diagnostics archive in
109 instead of the current directory\&.
112 \-s <format>, \-\-suffix <format>
114 Specify an alternate suffix for the diagnostics archive name, to create a file named
115 \fIgit\-diagnostics\-<formatted\-suffix>\fR\&. This should take the form of a strftime(3) format string; the current local time will be used\&.
120 Specify the type of diagnostics that should be collected\&. The default behavior of
123 \fB\-\-mode=stats\fR\&.
127 option collects everything included in
128 \fB\-\-mode=stats\fR, as well as copies of \&.\fBgit\fR, \&.\fBgit/hooks\fR, \&.\fBgit/info\fR, \&.\fBgit/logs\fR, and \&.\fBgit/objects/info\fR
129 directories\&. This additional information may be sensitive, as it can be used to reconstruct the full contents of the diagnosed repository\&. Users should exercise caution when sharing an archive generated with
130 \fB\-\-mode=all\fR\&.
134 Part of the \fBgit\fR(1) suite