macOS
brew install git-sizerlocal Homebrew formula metadata
sudo port install git-sizerMacPorts ports tree · devel/git-sizer/Portfile · 来源: api.github.com
安装
brew install git-sizerlocal Homebrew formula metadata
sudo port install git-sizerMacPorts ports tree · devel/git-sizer/Portfile · 来源: api.github.com
sudo apk add git-sizerAlpine Linux edge package indexes · git-sizer · 来源: dl-cdn.alpinelinux.org
sudo apt install git-sizerDebian stable package indexes · git-sizer · 来源: deb.debian.org
nix profile install nixpkgs#git-sizernixpkgs package indexes · pkgs/by-name/gi/git-sizer/package.nix · 来源: api.github.com
sudo pacman -S git-sizerArch Linux sync databases · git-sizer · 来源: geo.mirror.pkgbuild.com
scoop install main/git-sizerScoop official bucket manifest trees · bucket/git-sizer.json · 来源: api.github.com
winget install --id GitHub.git-sizer -eWindows Package Manager source index · GitHub.git-sizer · 来源: cdn.winget.microsoft.com
概览
Compute various size metrics for a Git repository
历史
git-sizer is a GitHub-authored command-line analyzer that measures repository size and shape, then flags characteristics that make Git operations slow, expensive, or inconvenient.
The GitHub repository began in early 2018 and published v1.0.0 in March 2018. The README presents the tool as a practical diagnostic for repositories that have outgrown Git's comfortable operating range, with checks for large object sets, huge blobs, many references, deep histories, giant trees, long paths, and unusual tag or merge structures.
The project evolved as a Go utility that shells out to Git and reports both human-readable tables and machine-readable JSON. Later releases continued to refine the metric set and output behavior while keeping the core purpose stable: make repository bloat visible before it turns into slow clones, fetches, repacks, garbage collection, and history traversal.
git-sizer has stronger ecosystem reach than most small Git extensions because it comes from the GitHub organization and is packaged across Homebrew, Chocolatey, Debian, Ubuntu, Arch, MacPorts, Nix, Scoop, and winget. That spread reflects its role as an operations tool for maintainers, enterprise source-control teams, and migration projects rather than a daily porcelain command for every developer.
Practitioners run git-sizer inside a full, non-shallow clone to get concern-ranked metrics, often using --verbose for a complete inventory or --json for automation. The output points maintainers toward remedies such as removing generated files, moving binary assets to Git LFS or git-annex, pruning excess refs, splitting subprojects, or reshaping directories.
Package maintainers care about git-sizer because source archives, fetch times, build farms, mirrors, and monorepo migrations all suffer when repository topology gets pathological. It gives a repeatable vocabulary for discussing repository health without requiring a custom Git forensics script.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-sizer | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:git-sizer |
|---|---|
| 版本 | 1.5.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/github/git-sizer |
| 仓库 | https://github.com/github/git-sizer |
| 最后更新 | 2026-07-27T14:57:49+02:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
git-sizer 1.5.0-3+b12
compute various size metrics for a Git repository
https://github.com/github/git-sizer
sudo apt install git-sizergit-sizer
nix profile install nixpkgs#git-sizergit-sizer 1.5.0-3build1
compute various size metrics for a Git repository
https://github.com/github/git-sizer
sudo apt install git-sizergit-sizer 1.5.0-r40
Compute various size metrics for a Git repository
https://github.com/github/git-sizer
sudo apk add git-sizergit-sizer 1.5.0-3
Compute various size metrics for a Git repository
https://github.com/github/git-sizer
sudo pacman -S git-sizergit-sizer
sudo port install git-sizermain/git-sizer
scoop install main/git-sizerGitHub.git-sizer
winget install --id GitHub.git-sizer -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.