2 .\" Title: git-diagnose
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.41.0.rc0.4.g004e0f790f
10 .TH "GIT\-DIAGNOSE" "1" "2023\-05\-17" "Git 2\&.41\&.0\&.rc0\&.4\&.g00" "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>]
41 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\&.
43 By default, the following information is captured in the archive:
53 \fIgit version \-\-build\-options\fR
64 The path to the repository root
75 The available disk space on the filesystem
86 The name and size of each packfile, including those in alternate object stores
97 The total count of loose objects, as well as counts broken down by
102 Additional information can be collected by selecting a different diagnostic mode using the \fB\-\-mode\fR option\&.
104 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\&.
107 \-o <path>, \-\-output\-directory <path>
109 Place the resulting diagnostics archive in
111 instead of the current directory\&.
114 \-s <format>, \-\-suffix <format>
116 Specify an alternate suffix for the diagnostics archive name, to create a file named
117 \fIgit\-diagnostics\-<formatted suffix>\fR\&. This should take the form of a strftime(3) format string; the current local time will be used\&.
122 Specify the type of diagnostics that should be collected\&. The default behavior of
125 \fB\-\-mode=stats\fR\&.
129 option collects everything included in
130 \fB\-\-mode=stats\fR, as well as copies of
134 \fB\&.git/logs\fR, and
135 \fB\&.git/objects/info\fR
136 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
137 \fB\-\-mode=all\fR\&.
141 Part of the \fBgit\fR(1) suite