git-sizer measures the structural size of a local Git repository and flags characteristics likely to make Git operations expensive. It goes beyond reporting disk usage by examining the objects, references and trees that Git must traverse during cloning, fetching, maintenance and everyday work.
Large repositories can be troublesome for several different reasons. A modest number of enormous files, an excessive number of references and extremely large directory trees pose different problems. git-sizer separates these cases so maintainers can determine which parts of a repository need attention.
The tool does not decide which files belong in a project. Instead, it identifies unusual Git object structures so maintainers can investigate appropriate remedies, such as separating large assets from source history or reducing unnecessary references. The measurements are especially valuable before a repository becomes difficult to clone.
This is free and open source software.
Key Features
- Measures the overall repository size and counts important classes of Git objects.
- Checks for unusually large blobs that increase clone sizes and reconstruction costs.
- Analyses the number of branches, tags and other references that must be handled during fetch operations.
- Reports large trees and directories containing unusually many entries.
- Identifies deep history and large commit structures that can complicate Git traversal.
- Checks tree depth and path lengths that may affect repository operations.
- Highlights measurements that exceed established warning thresholds.
- Provides a compact overview suitable for repository audits and a more detailed statistics output when requested.
- Performs its analysis against locally available Git objects, without requiring a hosted repository service.
Website: github.com/github/git-sizer
Support:
Developer: GitHub
License: MIT License
git-sizer is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Git Tools for Diff Review and Repository History | |
|---|---|
| difftastic | Structural diff tool that compares files based on their syntax |
| git-filter-repo | Quickly rewrite git repository history |
| onefetch | Displays information about a local Git repository |
| git-stats | Local git statistics including GitHub-like contributions calendars |
| diff-so-fancy | Attractive diffs with diff-highlight and more |
| BFG Repo-Cleaner | Clean unwanted data from Git repository history |
| git-delta | Viewer for git and diff output |
| gitlogue | Cinematic Git commit replay tool |
| git-quick-stats | Access various statistics in a git repository |
| git-who | Command-line Git analysis tool |
| git-standup | Recall what you did on the last working day |
| git-of-theseus | Analyze how a Git repo grows over time |
| git-sizer | Compute various size metrics for a git repository |
| diffnav | Git diff pager based on delta but with a file tree, à la GitHub |
| critique | Terminal UI for reviewing git diffs |
| git-big-picture | Visualization tool for Git repositories |
| hercules | Gain advanced insights from Git repository history |
| keifu | TUI that visualizes Git commit graphs |
| git-fame | Git repository collaborators sorted by contributions |
| needle | Highlights GitHub PRs |
| mergiraf | Git merge driver |
| git-history | Analyze Git history using SQLite |
| ec | Terminal Git mergetool |
| diffr | Word-by-word diff highlighting utility |
| git-scope | Fast TUI dashboard to view the git status of all your repositories |
| mamediff | Manages unstaged and staged Git diffs |
| deadbranch | Keep Git repositories tidy |
| GitTop | Lightweight desktop client for GitHub notifications |
| git-heatmap | Generates a customizable heatmap |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.