pkg.sopackage field notes

brew / 审批门 / 排名 33

使用 Homebrew 安装 git

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

代理安全

代理安全回答

git can read repository history and mutate source-control state used by agents and humans.

凭据访问

Reads credential helpers, remotes, config, signed keys, and repository-local secret history.

远程变更

Can push commits, tags, branches, and force updates to remote repositories.

发布/制品风险

Can publish source changes and release tags that downstream systems consume.

推荐控制

Gate pushes, tag creation, credential fill, and remote rewrites.

代理使用指南

Allow diff/status/log reads; require approval for pushes, credential-helper reads, and destructive history changes.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git

provider-native install command

概览

软件包摘要

Distributed revision control system

命令和别名

  • git
  • git-cvsserver
  • git-receive-pack
  • git-shell
  • git-upload-archive
  • git-upload-pack
  • scalar

历史

项目历史与用法

Git is the distributed version-control system created for Linux kernel development and later generalized into the default source-control substrate for much of software development. Its command-line interface, repository format, protocol family, and ecosystem of hosting services define how many projects exchange code.

项目历史

Git began in 2005 after the Linux kernel community lost access to the proprietary BitKeeper workflow it had been using. Linus Torvalds wrote the original implementation to support Linux-scale development, emphasizing speed, integrity, distributed operation, and cheap branching.

The design departed from centralized version-control systems by making every clone a full repository with local history and branch operations. That choice made offline work, fork-based development, and patch exchange natural rather than exceptional.

After its Linux origin, Git evolved into a broadly portable tool with a large manual set, porcelain commands for everyday work, and plumbing commands for scripts and higher-level tools. The kernel.org repository remains the canonical upstream source location, while git-scm.com provides the public documentation hub.

采用历史

Git's adoption accelerated with distributed open source development and the rise of Git hosting services such as GitHub, GitLab, and related forges. The official Git site characterizes the core project as a command-line tool surrounded by hosting services, graphical clients, editor integrations, and other command-line helpers.

By the early 2010s, Git had moved from a Linux-kernel tool into the common denominator for open source collaboration, commercial software teams, CI systems, package ecosystems, and code review platforms. Its repository model also became the foundation for workflows outside source code, including documentation and data-adjacent projects.

使用方式

Practitioners use Git to initialize or clone repositories, stage and commit changes, branch and merge work, inspect history, exchange commits through remotes, and recover earlier states. Its local-first model makes common commands fast because most history and metadata are on the developer's machine.

Teams layer policy on top of Git through protected branches, pull requests, signed commits, release tags, submodules, worktrees, hooks, and CI triggers. The same executable serves both interactive daily work and automation in release scripts, package recipes, deployment systems, and source archives.

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

Git is one of the central dependencies of package-manager culture. Formulae, ports, distro source packages, language registries, and build systems routinely fetch from Git repositories, pin commits or tags, generate source archives, and use Git metadata to derive versions.

Its significance also comes from its stability as an interchange format. Even tools that wrap Git, avoid the Git CLI, or store files elsewhere usually need to speak in Git concepts: commits, refs, remotes, branches, tags, diffs, and patches.

时间线

  • 2005: Git was created for Linux kernel development after the BitKeeper transition.
  • 2005: Early Git releases established the distributed repository model.
  • 2010s: Hosted Git forges and pull-request workflows made Git the dominant version-control system for many developer communities.
  • 2020s: Git remained a base dependency for package managers, CI, source archives, and developer tools.

Related projects

  • Linux kernel development drove Git's original requirements.
  • GitHub, GitLab, Gitea, Forgejo, and other forges build hosted collaboration around Git repositories.
  • Git LFS and Git Xet extend Git workflows for large-file storage.
  • Scalar, included with Git packages, targets very large repository workflows.

审批门

高风险命令的人工审核元数据

本地审批门种子包含 6 条适用于 git 的规则。覆盖的入口点:git。严重级别:严重, 高, 中。覆盖状态:partial,审核于 2026-05-21。

受控操作示例

  • Push commits, tags, or refs to a remote repository.
  • Force-push or delete remote refs.
  • Reset local worktree and index destructively.
  • Delete untracked files from the worktree.
  • Read, approve, reject, or fill credentials through Git credential helpers.
  • Change credential helper configuration.

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.

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.git-credentials

可执行文件

已安装的可执行文件

命令类型暴露范围备注
git可执行文件已索引可执行文件从本地可执行文件索引发现。
git-cvsserver可执行文件已索引可执行文件从本地可执行文件索引发现。
git-receive-pack可执行文件已索引可执行文件从本地可执行文件索引发现。
git-shell可执行文件已索引可执行文件从本地可执行文件索引发现。
git-upload-archive可执行文件已索引可执行文件从本地可执行文件索引发现。
git-upload-pack可执行文件已索引可执行文件从本地可执行文件索引发现。
scalar可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本2.55.0
管理器更新时间2026-06-29
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:git
版本2.55.0
软件包管理器Homebrew
主页https://git-scm.com
仓库https://github.com/git/git
最后更新2026-06-29T20:54:53Z
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • approval-gate seed metadata
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • pkgdb category and tag curation