Hongmu Notes

git column

Display data in column format

100% Browser local processing 0 Data upload

Common examples

Format standard input for multi-column display

ls | git column --mode={{column}}

Display standard input in column format with a maximum width of `100`

ls | git column --mode=column --width={{100}}

Display standard input in column format with maximum margins of `30`

ls | git column --mode=column --padding={{30}}

Tip: curly braces{{…}}It is the parameter that needs to be replaced (path, file name, etc.); the command is only executed in the local terminal, and this site does not save any input.

English original text comparison

Expand English instructions and examples (source tldr-pages)

Display data in columns. More information

Format `stdin` as multiple columns

ls | git column --mode={{column}}

Format `stdin` as multiple columns with a maximum width of `100`

ls | git column --mode=column --width={{100}}

Format `stdin` as multiple columns with a maximum padding of `30`

ls | git column --mode=column --padding={{30}}

command information

command namegit column
PurposeDisplay data in column format
Applicable platforms通用
Number of examples3 Article
Official documentationhttps://git-scm.com/docs/git-column
Data sourcetldr-pages(CC-BY-4.0)· Community Chinese Translation

FAQ

git column What does the command do?

Display data in column format

git column How to use it?

Pages listed by scene3Commonly used examples: Each example first explains the purpose, and then gives a complete command that can be directly copied (the parameters that need to be replaced are in the curly brackets).

git column What are the most commonly used operations?

Format standard input for multi-column display:ls | git column --mode={{column}}

What do the curly braces in the command mean?

curly braces{{…}}Indicates that you need to replace it with your own value, such as path and file name; square brackets for parameters with the same name (such as[-C|--directory]) indicates optional writing.