A cat(1) clone for the terminal with syntax highlighting, Git change markers, and automatic paging.
o2sh/onefetch
A command-line tool that prints an information summary and code statistics for a local Git repository in the terminal.
- Stars
- 12,081
- Forks
- 336
- Open issues
- 66
- Last commit
- yesterday
What is it?
Onefetch is a command-line tool that shows project information and code statistics for a local Git repository directly in the terminal. It runs fully offline and reads data from the repository's Git history and files, so it needs no account or network access.
Running it inside a repo, or passing a repo path, prints an info panel with details such as the project name, language breakdown, commit and author counts, and file statistics. Output can be adjusted with command-line options: text styling, which info lines to show, ignored files and directories, and output in formats such as JSON and YAML.
It is distributed for Linux, macOS and Windows through apt-style packages, Homebrew, pacman, zypper and winget, and prebuilt binaries are available on the releases page.
Key features
- 01Shows repository name, language breakdown and code statistics in the terminal.
- 02Reads authors and commit history from Git, working offline.
- 03Supports more than 100 programming languages.
- 04Customizable output via command-line options, including JSON and YAML formats.
- 05Lets you ignore files and directories and filter languages by type.
Use cases
- Getting a quick overview of an unfamiliar repository when you open it.
- Adding a repository summary to a terminal startup or shell prompt.
- Exporting repository statistics as JSON or YAML for scripts or reports.
Quick start
- 1
Install on macOS with Homebrew
brew install onefetch - 2
Install on Windows with winget
winget install onefetch - 3
Install on Arch Linux with pacman
pacman -S onefetch - 4
Run onefetch inside your Git repository
cd /path/of/your/repo onefetch
In collections
Topics
FAQ
- What is onefetch?
- A command-line tool that prints an information summary and code statistics for a local Git repository in the terminal. Onefetch is a command-line tool that shows project information and code statistics for a local Git repository directly in the terminal. It runs fully offline and reads data from the repository's Git history and files, so it needs no account or network access.
- Is onefetch free to use? What license does it have?
- onefetch is open source under the MIT license. Check the license terms before using it in commercial products.
- Is onefetch still maintained?
- Actively maintained. The last commit to onefetch was on Nov 5, 2026.
- What can I use onefetch for?
- Getting a quick overview of an unfamiliar repository when you open it. Adding a repository summary to a terminal startup or shell prompt. Exporting repository statistics as JSON or YAML for scripts or reports.
- How do I install onefetch?
- Install on macOS with Homebrew: brew install onefetch Install on Windows with winget: winget install onefetch Install on Arch Linux with pacman: pacman -S onefetch Run onefetch inside your Git repository: cd /path/of/your/repo onefetch
- Where can I get onefetch?
- The source code and installation instructions are on GitHub: https://github.com/o2sh/onefetch
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A fast, user-friendly command-line alternative to the Unix find command for locating files and directories by name.
A command-line tool for benchmarking commands with statistical analysis, warmup runs, and exports to CSV, JSON, Markdown and AsciiDoc.
A command-line tool for viewing the status of many git repos side by side and running git or shell commands across them.
A terminal UI for git written in Rust, offering keyboard-driven staging, committing, branching, stashing and log browsing.
A visual and command-line developer tool for testing and debugging Model Context Protocol (MCP) servers, with web, CLI, and terminal UI modes.