blob: eca726e57911af2cc1f0643cafdcf887c20bfa32 [file] [log] [blame]
Emily Shaffer238b4392020-04-16 14:18:04 -07001git-bugreport(1)
2================
3
4NAME
5----
6git-bugreport - Collect information for user to file a bug report
7
8SYNOPSIS
9--------
10[verse]
11'git bugreport' [(-o | --output-directory) <path>] [(-s | --suffix) <format>]
Victoria Dyeaac0e8f2022-08-12 20:10:17 +000012 [--diagnose[=<mode>]]
Emily Shaffer238b4392020-04-16 14:18:04 -070013
14DESCRIPTION
15-----------
16Captures information about the user's machine, Git client, and repository state,
17as well as a form requesting information about the behavior the user observed,
18into a single text file which the user can then share, for example to the Git
19mailing list, in order to report an observed bug.
20
21The following information is requested from the user:
22
23 - Reproduction steps
24 - Expected behavior
25 - Actual behavior
26
Emily Shaffer617d5712020-04-16 14:18:05 -070027The following information is captured automatically:
28
29 - 'git version --build-options'
Emily Shaffer14119142020-04-16 14:18:06 -070030 - uname sysname, release, version, and machine strings
Emily Shaffer69bcbbc2020-04-16 14:18:07 -070031 - Compiler-specific info string
Emily Shaffer788a7762020-05-07 17:53:57 -070032 - A list of enabled hooks
Emily Shaffer4a4804e2020-05-12 16:42:13 -070033 - $SHELL
Emily Shaffer617d5712020-04-16 14:18:05 -070034
Victoria Dyeaac0e8f2022-08-12 20:10:17 +000035Additional information may be gathered into a separate zip archive using the
36`--diagnose` option, and can be attached alongside the bugreport document to
37provide additional context to readers.
38
Emily Shaffer238b4392020-04-16 14:18:04 -070039This tool is invoked via the typical Git setup process, which means that in some
40cases, it might not be able to launch - for example, if a relevant config file
41is unreadable. In this kind of scenario, it may be helpful to manually gather
42the kind of information listed above when manually asking for help.
43
44OPTIONS
45-------
46-o <path>::
47--output-directory <path>::
Bagas Sanjayaca0cc982021-09-03 18:59:34 +070048 Place the resulting bug report file in `<path>` instead of the current
49 directory.
Emily Shaffer238b4392020-04-16 14:18:04 -070050
51-s <format>::
52--suffix <format>::
53 Specify an alternate suffix for the bugreport name, to create a file
54 named 'git-bugreport-<formatted suffix>'. This should take the form of a
Todd Zullinger01b62aa2020-05-18 15:37:36 -040055 strftime(3) format string; the current local time will be used.
Emily Shaffer238b4392020-04-16 14:18:04 -070056
Victoria Dyeaac0e8f2022-08-12 20:10:17 +000057--no-diagnose::
58--diagnose[=<mode>]::
59 Create a zip archive of supplemental information about the user's
60 machine, Git client, and repository state. The archive is written to the
61 same output directory as the bug report and is named
62 'git-diagnostics-<formatted suffix>'.
63+
64Without `mode` specified, the diagnostic archive will contain the default set of
65statistics reported by `git diagnose`. An optional `mode` value may be specified
66to change which information is included in the archive. See
67linkgit:git-diagnose[1] for the list of valid values for `mode` and details
68about their usage.
69
Emily Shaffer238b4392020-04-16 14:18:04 -070070GIT
71---
72Part of the linkgit:git[1] suite