# git-bugreport - Collect information for user to file a bug report - man(1) - [phpMan]

> **TLDR:** Capture debug information from the system and user, generating a text file to aid in the reporting of a bug in Git.
>
- Create a new bug report file in the current directory:
  `git bugreport`
- Create a new bug report file in the specified directory, creating it if it does not exist:
  `git bugreport {{-o|--output-directory}} {{path/to/directory}}`
- Create a new bug report file with the specified filename suffix in `strftime` format:
  `git bugreport {{-s|--suffix}} {{%m%d%y}}`

*Source: tldr-pages*

---

[_GIT-BUGREPORT_(1)](https://www.chedong.com/phpMan.php/man/GIT-BUGREPORT/1/markdown)                             Git Manual                             [_GIT-BUGREPORT_(1)](https://www.chedong.com/phpMan.php/man/GIT-BUGREPORT/1/markdown)

## NAME
       git-bugreport - Collect information for user to file a bug report

## SYNOPSIS
       _git_ _bugreport_ [(-o | --output-directory) <path>] [(-s | --suffix) <format>]
                       [--diagnose[=<mode>]]


## DESCRIPTION
       Collects information about the user’s machine, Git client, and repository state, in addition
       to a form requesting information about the behavior the user observed, and stores it in a
       single text file which the user can then share, for example to the Git mailing list, in order
       to report an observed bug.

       The following information is requested from the user:

       •   Reproduction steps

       •   Expected behavior

       •   Actual behavior

       The following information is captured automatically:

       •   _git_ _version_ _--build-options_

       •   uname sysname, release, version, and machine strings

       •   Compiler-specific info string

       •   A list of enabled hooks

       •   $SHELL

       Additional information may be gathered into a separate zip archive using the **--diagnose**
       option, and can be attached alongside the bugreport document to provide additional context to
       readers.

       This tool is invoked via the typical Git setup process, which means that in some cases, it
       might not be able to launch - for example, if a relevant config file is unreadable. In this
       kind of scenario, it may be helpful to manually gather the kind of information listed above
       when manually asking for help.

## OPTIONS
### -o <path>, --output-directory <path>
           Place the resulting bug report file in **<path> **instead of the current directory.

### -s <format>, --suffix <format>
           Specify an alternate suffix for the bugreport name, to create a file named
           _git-bugreport-<formatted_ _suffix>_. This should take the form of a [strftime(3)](https://www.chedong.com/phpMan.php/man/strftime/3/markdown) format
           string; the current local time will be used.

       --no-diagnose, --diagnose[=<mode>]
           Create a zip archive of supplemental information about the user’s machine, Git client,
           and repository state. The archive is written to the same output directory as the bug
           report and is named _git-diagnostics-<formatted_ _suffix>_.

           Without **mode **specified, the diagnostic archive will contain the default set of statistics
           reported by **git diagnose**. An optional **mode **value may be specified to change which
           information is included in the archive. See [**git-diagnose**(1)](https://www.chedong.com/phpMan.php/man/git-diagnose/1/markdown) for the list of valid values
           for **mode **and details about their usage.

## GIT
       Part of the [**git**(1)](https://www.chedong.com/phpMan.php/man/git/1/markdown) suite

Git 2.43.0                                   07/02/2025                             [_GIT-BUGREPORT_(1)](https://www.chedong.com/phpMan.php/man/GIT-BUGREPORT/1/markdown)
