gitmyhub

onefetch

Rust ★ 12k updated 5d ago

Command-line Git information tool

Onefetch is a command-line tool that prints a summary of any local Git repository in your terminal, showing programming language breakdown and project statistics, all offline with no external services.

Rustsetup: easycomplexity 1/5

Onefetch is a command-line tool that shows a summary of a Git repository directly in your terminal. Point it at any local repo and it prints information about the project alongside statistics about the code, such as which programming languages are used and other details it can gather from the Git history.

The tool runs entirely offline. It does not call any external services or require an internet connection. Everything it shows comes from the repository files and Git data already on your machine. The README describes a focus on speed and the ability to customize what gets displayed.

Installation is handled through standard package managers. On a Mac you can use brew, on Windows you can use winget, and on Linux there are options for Ubuntu, Arch, and openSUSE depending on which distribution you run. You can also download a binary directly from the releases page if none of those package managers fit your setup.

Using it is straightforward: either navigate to a repository directory and type onefetch, or pass the path to the repository as an argument. The output can be adjusted through command-line flags that let you change text styling, skip certain information lines, exclude specific files or directories, or export the data as JSON or YAML instead of the default terminal view.

Onefetch recognizes more than 100 programming languages. If a language is missing, the project accepts contributions. It is written in Rust and available on Linux, macOS, and Windows.

Where it fits