Files
tldr/pages.zh/common/onefetch.md

36 lines
882 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# onefetch
> 显示本地 Git 仓库的项目信息和代码统计。
> 更多信息:<https://github.com/o2sh/onefetch/wiki/command-line-options>。
- 显示当前工作目录中 Git 仓库的统计信息:
`onefetch`
- 显示指定目录中 Git 仓库的统计信息:
`onefetch {{path/to/directory}}`
- 忽略由机器人提交的更改:
`onefetch --no-bots`
- 忽略合并提交:
`onefetch --no-merges`
- 不打印语言标志的 ASCII 艺术:
`onefetch --no-art`
- 显示 `n` 位作者、语言或文件更改次数默认值3、6 和 3
`onefetch --number-of-{{authors|languages|file-churns}} {{n}}`
- 忽略指定的文件和目录:
`onefetch {{-e|--exclude}} {{path/to/file_or_directory|regular_expression}}`
- 仅检测指定类别的语言(默认值:编程和标记):
`onefetch {{-T|--type}} {{programming|markup|prose|data}}`