Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, scoop, winget 安装 gitversion

查看 gitversion 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gitversion

local Homebrew formula metadata

Windows

Chocolatey已验证 · 92%
choco install GitVersion

Chocolatey community package catalog · GitVersion · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/gitversion

Scoop official bucket manifest trees · bucket/gitversion.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GitTools.GitVersion -e

Windows Package Manager source index · GitTools.GitVersion · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Easy semantic versioning for projects using Git

命令和别名

  • gitversion

历史

项目历史与用法

GitVersion is a release-management utility that derives Semantic Versioning values from a Git repository. It turns branch names, tags, merge history, and configuration into version variables that can be consumed by command-line builds, MSBuild, CI tasks, Docker workflows, and libraries.

项目历史

The GitTools/GitVersion repository dates to 2013 and grew around a narrow problem in Git-based release automation: projects wanted SemVer numbers without hand-editing version files on every build. Its official README describes the core idea as looking at Git history and working out the Semantic Version of the commit being built.

The project evolved from a .NET-oriented CLI into a family of build integrations. The official README lists GitHub releases, Chocolatey, NuGet packages for the .NET tool and MSBuild task, Homebrew, Winget, Azure Pipelines, GitHub Actions, and Docker artifacts, reflecting a tool meant to sit inside many build systems rather than one local shell.

采用历史

GitVersion became significant in the .NET and CI ecosystem because it encoded common GitFlow and trunk-style versioning rules into a repeatable build step. Its documentation emphasizes use in command-line and continuous-integration contexts, where build servers need the same version calculation as developer machines.

Package-manager metadata in this batch shows GitVersion distributed through Homebrew, Chocolatey, Scoop, and Winget. Combined with the official NuGet, Azure Pipelines, GitHub Actions, and Docker artifacts, that spread shows adoption across local developer tooling and hosted build infrastructure.

使用方式

Practitioners use GitVersion to generate version variables during builds, then feed those values into package metadata, assembly attributes, container tags, release names, or CI outputs. The common workflow is to run the CLI or an integration from a checked-out Git repository and let GitVersion infer the SemVer value from repository state.

Teams also add GitVersion.yml or GitVersion.yaml files when the default branching and incrementing rules need to match their release process. That configuration keeps version policy near source code while avoiding custom scripts for every pipeline.

为什么软件包爱好者会关心

GitVersion matters to package maintainers because it makes version numbers reproducible from source history. That is attractive for automated package builds, where the package version should be explainable from tags and commits rather than a mutable build-server counter.

It is also a good example of a CLI that became a packaging surface in its own right: the same versioning engine is exposed as a standalone executable, a .NET tool, an MSBuild task, CI marketplace integrations, and container images.

时间线

  • 2013: The GitTools/GitVersion repository is created on GitHub.
  • 2015: GitVersion 3.3.0 appears in the GitHub releases feed.
  • 2020: GitVersion 5.x tags show the tool's continued shift toward broad build-system integration.
  • 2026: Repository activity and packaged artifacts show ongoing maintenance.

Related projects

  • Semantic Versioning supplies the version-numbering convention GitVersion calculates.
  • GitFlow-style branch models influenced many of GitVersion's documented branch and incrementing rules.
  • GitHub Actions, Azure Pipelines, MSBuild, NuGet, Docker, Homebrew, Chocolatey, Scoop, and Winget are distribution or integration surfaces named by the project and package metadata.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
GitVersion.ymlGitVersion.yaml.GitVersion.yml.GitVersion.yaml
Windows
GitVersion.ymlGitVersion.yaml.GitVersion.yml.GitVersion.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gitversioncli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本6.8.1
管理器更新时间2026-07-03
本地数据OK
上游当前
检测到的最新版本6.8.1

https://github.com/GitTools/GitVersion

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gitversion
版本6.8.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gitversion
主页https://gitversion.net/docs/
仓库https://github.com/GitTools/GitVersion
上游文档https://gitversion.net/docs
许可证MIT
源码归档https://github.com/GitTools/GitVersion/archive/refs/tags/6.8.1.tar.gz
最后更新2026-07-03T15:04:39Z
Pulseupdated
依赖dotnet, openssl@3
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegitversion
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Chocolatey95%

GitVersion

choco install GitVersion
  • normalized package name match
  • 匹配方式:Gitversion
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: GitVersion from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.5836','capture'
Scoop95%

main/gitversion

scoop install main/gitversion
  • normalized package name match
  • 匹配方式:Gitversion
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/gitversion.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

GitTools.GitVersion

winget install --id GitTools.GitVersion -e
  • normalized package name match
  • 匹配方式:Gitversion
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GitTools.GitVersion from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment