- 版本
- 3.3.0
- 发布日期
- 2026-11-21
- 平台
- Windows
- 安装包大小
- Windows 6.6 MB
- 发布者
- o2sh
onefetch
Onefetch Command line Git information tool
README
Onefetch - Command-line Git information tool
Homepage | Installation | Documentation
Onefetch is a command-line Git information tool that displays project information and code statistics for a local Git repository directly in your terminal. The tool works completely offline with a focus on performance and customizability.
![]() |
![]() |
Installation
Onefetch is available on Linux, macOS, and Windows platforms. Binaries for Linux, Windows, and macOS are available on the release page.
Linux
Ubuntu
wget https://github.com/o2sh/onefetch/releases/latest/download/onefetch_amd64.deb && sudo dpkg -i ./onefetch_amd64.deb && rm onefetch_amd64.debArch Linux
pacman -S onefetchopenSUSE
zypper install onefetch
macOS
brew install onefetch
Windows
winget install onefetch
Usage
onefetch /path/of/your/repo
Or
cd /path/of/your/repo
onefetch
Customization
Onefetch can be customized via command-line arguments to display exactly what you want, the way you want it: adjust the text styling, disable info lines, ignore files and directories, output in multiple formats (JSON, YAML), etc.
To keep your favorite options, put them in a config file at ~/.config/onefetch/config.jsonc.
Frequently Asked Questions
Why isn't my language detected?
By default, onefetch only displays programming and markup languages. Languages classified as prose (like Org mode, Markdown, or Text) or data (like JSON, YAML, or TOML) are hidden unless you include them with --language-types.
onefetch --language-types programming markup prose data
Why is the lines of code count lower than expected?
Onefetch counts only lines of code. Blank lines and comments are not counted, so the total can be well below what wc -l reports.
Why do duplicate authors appear?
Onefetch reads authors from the Git history. If the same person committed with different names or emails, they may appear more than once.
To merge those entries, add a .mailmap file to the repository.
Contributing
Currently, onefetch supports more than 100 different programming languages; if your language of choice isn't supported, open an issue and support will be added.
Contributions are very welcome! See CONTRIBUTING for more info.

