
Onefetch
Shows a summary of a local Git repository's info and code stats in your terminal.
- Stars
- 12.1k
- Forks
- 336
- Licence
- MIT
- Language
- Rust
- Last update
- 4 days ago
- Type
- CLI
What it is
Onefetch is a command-line tool that displays project information and code statistics for a local Git repository directly in your terminal. It runs offline and is meant to give you a quick overview of a project without opening a browser or IDE. It can be customized with command-line options to change which info lines appear.
- Run onefetch in a project folder to see its overview and language stats
- Pass a path to inspect a repository without changing directories
- Use --type to include prose or data languages that are hidden by default
- Output repository info in JSON or YAML formats using command-line options
- Add a .mailmap file to merge duplicate author entries in the output
Great for
- Developers who want a quick overview of an unfamiliar local repository
- People who work in the terminal and prefer command-line tools
- Anyone who wants to see language breakdowns for a Git project
- Users who want to show repository stats in a terminal screenshot or summary
Not ideal for
- People who need a graphical interface, since it is a command-line tool only
- Users who need remote hosted repository data from GitHub or GitLab, since the README says it works on a local repository
- Users whose language is not among the supported ones, since the README says support is added on request
How to get it
- 1
Install with a package manager
Ubuntu (download .deb package)
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 onefetchmacOS (Homebrew)
brew install onefetchWindows (winget)
winget install onefetch - 2
Run it
- Install onefetch using the command for your operating system
- Change into a Git repository folder with cd /path/of/your/repo
- Run onefetch to see the summary for that repository
- 3
Get the most out of it
- Use --type programming markup prose data to include all language types in the language breakdown
- Add a .mailmap file to the repository to merge duplicate author entries
- Check the command-line options wiki page to adjust text styling and hide info lines
- Use the JSON or YAML output formats to feed repository info into other tools
Downloads
Strengths
- Works completely offline on local repositories, according to the README
- Available on Linux, macOS, and Windows through several package managers
- Customizable through command-line arguments, including ignoring files and directories
Trade-offs
- Only inspects local Git repositories, not remote hosting services
- Hides prose and data languages by default, so some languages need a flag to show
- Duplicate authors can appear when the same person used different names or emails unless a .mailmap file is added
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| onefetch (this) | 12.1k | CLI | beginner | 4 days ago | Developers who want a quick overview of an unfamiliar local repository |
| gitui | 22.6k | App | beginner | 1 months ago | Developers who already work in a terminal and want a visual view of git changes |
| cz-cli | 17.5k | Dev tool | beginner | 1 months ago | Teams that want every commit message to follow the same format |
| broot | 13.1k | CLI | intermediate | 5 days ago | Developers who work in a terminal and often jump between project folders |
| qrcp | 10.5k | CLI | beginner | 1 months ago | People who want to move a file to a phone without email, cables, or cloud storage |
| lazygit | 83.6k | CLI | beginner | 6 days ago | Developers who already use git from the command line and want a faster overview of their repository |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.