Get an instant language breakdown and project overview of any Git repo immediately after cloning it.
Add onefetch to shell startup scripts so entering a project directory automatically shows its stats.
Export repository statistics as JSON or YAML to feed into a project dashboard or automated reporting pipeline.
Explore an unfamiliar open-source codebase at a glance before spending time reading its documentation.
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.
← o2sh on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.