builtin/diagnose.c: create 'git diagnose' builtin
[git/debian.git] / Documentation / git-diagnose.txt
blobce07dd0725d54574aa8b87953a873572ef44948e
1 git-diagnose(1)
2 ================
4 NAME
5 ----
6 git-diagnose - Generate a zip archive of diagnostic information
8 SYNOPSIS
9 --------
10 [verse]
11 'git diagnose' [(-o | --output-directory) <path>] [(-s | --suffix) <format>]
13 DESCRIPTION
14 -----------
15 Collects detailed information about the user's machine, Git client, and
16 repository state and packages that information into a zip archive. The
17 generated archive can then, for example, be shared with the Git mailing list to
18 help debug an issue or serve as a reference for independent debugging.
20 The following information is captured in the archive:
22   * 'git version --build-options'
23   * The path to the repository root
24   * The available disk space on the filesystem
25   * The name and size of each packfile, including those in alternate object
26     stores
27   * The total count of loose objects, as well as counts broken down by
28     `.git/objects` subdirectory
30 This tool differs from linkgit:git-bugreport[1] in that it collects much more
31 detailed information with a greater focus on reporting the size and data shape
32 of repository contents.
34 OPTIONS
35 -------
36 -o <path>::
37 --output-directory <path>::
38         Place the resulting diagnostics archive in `<path>` instead of the
39         current directory.
41 -s <format>::
42 --suffix <format>::
43         Specify an alternate suffix for the diagnostics archive name, to create
44         a file named 'git-diagnostics-<formatted suffix>'. This should take the
45         form of a strftime(3) format string; the current local time will be
46         used.
48 GIT
49 ---
50 Part of the linkgit:git[1] suite