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.46.0.551.gc5ee8f2d1c
10 .TH "GIT\-DIAGNOSE" "1" "2024-09-10" "Git 2\&.46\&.0\&.551\&.gc5ee8f" "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
101 Additional information can be collected by selecting a different diagnostic mode using the \fB\-\-mode\fR option\&.
103 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\&.
106 \-o <path>, \-\-output\-directory <path>
108 Place the resulting diagnostics archive in
110 instead of the current directory\&.
113 \-s <format>, \-\-suffix <format>
115 Specify an alternate suffix for the diagnostics archive name, to create a file named
116 \fIgit\-diagnostics\-<formatted\-suffix>\fR\&. This should take the form of a strftime(3) format string; the current local time will be used\&.
121 Specify the type of diagnostics that should be collected\&. The default behavior of
124 \fB\-\-mode=stats\fR\&.
128 option collects everything included in
129 \fB\-\-mode=stats\fR, as well as copies of
133 \fB\&.git/logs\fR, and
134 \fB\&.git/objects/info\fR
135 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
136 \fB\-\-mode=all\fR\&.
140 Part of the \fBgit\fR(1) suite