onefetch logo

onefetch

Command-line tool that displays Git repository information and code statistics in terminal

install

Onefetch is a command-line Git information tool that analyzes local Git repositories and displays project metadata and code statistics directly in the terminal. It presents repository information including project details, language breakdowns, commit statistics, and contributor data in a formatted output similar to system information tools like neofetch.

The tool operates completely offline by analyzing the local Git repository structure and history without requiring network connectivity. It supports over 100 programming languages for code analysis and statistics generation. Users can run onefetch either by specifying a repository path or by executing it within a Git repository directory.

Onefetch provides extensive customization options through command-line arguments, allowing users to modify text styling, disable specific information lines, ignore certain files and directories, and output data in multiple formats including JSON and YAML. The tool focuses on performance and works across Linux, macOS, and Windows platforms.

Installation

# via Homebrew
brew install onefetch
# via pacman
pacman -S onefetch
# via winget
winget install onefetch

Onefetch output showing repository information

Onefetch output with different styling

Alternatives & related tools

add a badge to your README

Maintain onefetch? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/onefetch.svg)](https://www.trmn.sh/tools/onefetch?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/onefetch?utm_source=badge"><img src="https://www.trmn.sh/badge/onefetch.svg" alt="Featured on trmn" height="20"></a>