Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

onefetch

> 开发工具
Open source

Command-line Git information tool

12.0K stars0 likes3 views
WebsiteGitHub

About

Command-line Git information tool


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

    bash
    wget https://github.com/o2sh/onefetch/releases/latest/download/onefetch_amd64.deb && sudo dpkg -i ./onefetch_amd64.deb && rm onefetch_amd64.deb
  • Arch Linux

    pacman -S onefetch
  • openSUSE

    zypper install onefetch

macOS

bash
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.

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 --type.

onefetch --type programming markup prose data

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.

Issues· 63 open

View all issuesOpen on GitHub
  • #1828

    Info field values aren't stripped of terminal escape sequences

    Updated Sep 28, 2026
  • #1855

    C++ Modules doesn't count as a part of C++ source code

    enhancementgood first issueUpdated Sep 23, 2026
  • #1846

    Jujutsu Support

    enhancementUpdated Aug 24, 2026
  • #1843

    Pull request template?

    Updated Aug 18, 2026
  • #1490

    Allow disabling color codes in the output

    enhancementUpdated Jul 25, 2026
  • #1770

    Add an `AGENTS.md` file?

    Updated Jun 15, 2026
  • #1768

    Option to fetch additional info using GitHub/GitLab API when applicable

    enhancementUpdated Jun 11, 2026
  • #1732

    Colorful errors

    enhancementUpdated May 27, 2026
  • #1744

    Use a `rust-toolchain.toml` file?

    choreUpdated May 13, 2026
  • #1729

    Improve Just ASCII art

    Updated Apr 14, 2026

> Tags

Rustclicommand-linecommand-line-interfacegit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具