git-column
Display data in columns
TLDR
Format input into columns (column-first layout)
$ seq 1 24 | git column --mode=column --padding=[5]
Format input into columns (row-first layout)$ seq 1 21 | git column --mode=row --padding=[5]
Format input with a specific terminal width$ echo "[one two three four five six]" | git column --mode=column --width=[40]
Add indentation to each line$ seq 1 12 | git column --mode=column --indent="[ ]"
SYNOPSIS
git column [options]
DESCRIPTION
git column is a utility command that formats its standard input into a table with multiple columns, where each input line occupies one cell. While primarily used internally by Git to display lists (such as branch names, tag lists, or file listings) in a space-efficient columnar format, it is also available as a standalone formatting tool.The command reads input from stdin and arranges it into columns based on terminal width or specified constraints. It supports different layout modes: column-first (fill columns top to bottom), row-first (fill rows left to right), or plain (no formatting).
PARAMETERS
--command name
Look up layout mode using configuration variable column.name and column.ui.--mode mode
Specify layout mode. Supported values include column (fill columns top to bottom), row (fill rows left to right), and plain (no formatting).--raw-mode n
Same as --mode but takes mode encoded as a number. Mainly used by other commands that have already parsed layout mode.--width width
Specify the terminal width. By default git column detects the terminal width, or falls back to 80 if unable to do so.--indent string
String to be printed at the beginning of each line.--nl string
String to be printed at the end of each line, including newline character.--padding N
The number of spaces between columns. One space by default.
SEE ALSO
column(1), git-branch(1), git-tag(1)
