onefetch
Command-line tool that displays Git repository information and code statistics in terminal
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


Alternatives & related tools
gitoxide
Pure Rust implementation of Git, offered as the gix library crate plus gix and ein command-line binaries for testing the API and running workflow tools.
git absorb
Git subcommand that automatically creates fixup! commits from staged changes by finding the commit each hunk belongs to, with optional autosquash rebase.
gitu
Terminal user interface for Git inspired by Magit, providing visual staging, branching, and repository management
serie
Terminal UI for git commit graphs using image protocols to render rich visualizations in supported terminals
gitui
Terminal-based Git GUI for staging, committing, branching, and repository management with keyboard-only control
add a badge to your README
Maintain onefetch? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/onefetch?utm_source=badge)<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>