Command-line Git information tool
Onefetch is a command-line Git information tool that displays project information and code statistics for a local Git repository directly in your terminal. The tool works completely offline with a focus on performance and customizability.
Onefetch is available on Linux, macOS, and Windows platforms. Binaries for Linux, Windows, and macOS are available on the release page.
Ubuntu
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 onefetchopenSUSE
zypper install onefetchbrew install onefetchwinget install onefetchonefetch /path/of/your/repoOr
cd /path/of/your/repo
onefetchOnefetch can be customized via command-line arguments to display exactly what you want, the way you want it: adjust the text styling, disable info lines, ignore files and directories, output in multiple formats (JSON, YAML), etc.
By default, onefetch only displays programming and markup languages. Languages classified as prose (like Org mode, Markdown, or Text) or data (like JSON, YAML, or TOML) are hidden unless you include them with --type.
onefetch --type programming markup prose dataOnefetch reads authors from the Git history. If the same person committed with different names or emails, they may appear more than once.
To merge those entries, add a .mailmap file to the repository.
Currently, onefetch supports more than 100 different programming languages; if your language of choice isn't supported, open an issue and support will be added.
Contributions are very welcome! See CONTRIBUTING for more info.
Info field values aren't stripped of terminal escape sequences
C++ Modules doesn't count as a part of C++ source code
Jujutsu Support
Pull request template?
Allow disabling color codes in the output
Add an `AGENTS.md` file?
Option to fetch additional info using GitHub/GitLab API when applicable
Colorful errors
Use a `rust-toolchain.toml` file?
Improve Just ASCII art