Git Log Formatter

Build custom, clean, and professional one-line or decorated git log format commands interactively.

git log --graph --color --pretty=format:"%h%d %s (%ar by %an)"
Tip: Set this up as a global alias for quick access: git config --global alias.lg "..."

Common Placeholder Codes

1. Hashes & Refs

%H (full hash), %h (short hash), %d (branch/tag ref decorations).

2. Authors & Comitters

%an (author name), %ae (author email), %ad (author date).

3. Messages

%s (subject line summary), %b (commit body descriptions).

What is Git Log Formatter?

Git Log Formatter is a browser-based developer utility that helps you work with its relevant input and output without installing a separate desktop application.

How to use this tool

Enter or paste the required input, select the available options, then review the result before copying or applying it in your project. Test the result in its target environment when accuracy matters.

Git Log Formatter features

Using Git Log Formatter in a development workflow

Use a formatter when readability or consistent style is the main goal. Start with a representative source sample, select the intended output style, and compare key values before replacing the original. A formatter should change presentation, but malformed input or unsupported syntax can still produce errors or unexpected output.

Start with the values this task needs

  1. Run a small example first and compare the output with an expected value before trying a larger case.
  2. Pay attention to these page fields: Preset Style:, Included Placeholders:, Short Hash (%h). Confirm which fields are inputs, options, or output areas before processing.
  3. Follow the action provided by the page after entering the required input; check the field labels so source values and generated results are not confused.
  4. Confirm the result in the application or environment that will use it. The page only evaluates the information supplied here.

Confirm the output fits the next step

Review repository names, branch state, workflow permissions, and action versions before using generated Git commands or automation files.

Frequently Asked Questions (FAQ)

Yes. This tool is designed to process the values you enter in your browser.