Skip to content

bugreport Git Command Guide

The git bugreport command collects system and Git configuration information into a tarball to help diagnose problems. It packages logs, configuration, and environment details for submitting bug reports to the Git project.

Terminal window
git bugreport [options] [<prefix>]
OptionDescription
—suffix=Specify the format for the timestamp suffix
-o , —output=Save bug report to specified file
-t
-sInclude git config —show-origin output
Parameter Description Prefix for the bug report file name
Terminal window
git bugreport

Creates a tarball named bugreport-.tar.gz with system and Git information.

Terminal window
git bugreport --output issue-123.report

Saves the bug report to a specific file.

Terminal window
git bugreport -s

Adds git config —show-origin output to the report.

To generate a bug report, run:

Terminal window
git bugreport

How can I specify a custom output file for the bug report?

Section titled “How can I specify a custom output file for the bug report?”

To specify a custom output file, use:

Terminal window
git bugreport --output custom-report.tar.gz
  1. Collecting system information when encountering Git bugs
  2. Packaging configuration data for support requests
  3. Preparing reports for Git contributors and maintainers
  4. Diagnostic information gathering for troubleshooting
  5. Including environment details in Git issue submissions