Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 git-crypt

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git-crypt

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install git-crypt

MacPorts ports tree · devel/git-crypt/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add git-crypt

Alpine Linux edge package indexes · git-crypt · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install git-crypt

Debian stable package indexes · git-crypt · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install git-crypt

Fedora Rawhide package metadata · git-crypt · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#git-crypt

nixpkgs package indexes · pkgs/by-name/gi/git-crypt/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S git-crypt

Arch Linux sync databases · git-crypt · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install git-crypt

openSUSE Tumbleweed package metadata · git-crypt · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/git-crypt

Scoop official bucket manifest trees · bucket/git-crypt.json · 来源: api.github.com

概览

软件包摘要

Enable transparent encryption/decryption of files in a git repo

命令和别名

  • git-crypt

历史

项目历史与用法

git-crypt is Andrew Ayer's transparent encryption tool for selected files in a Git repository. It uses Git filters so protected files are encrypted in commits and decrypted in a working tree after the repository is unlocked.

项目历史

The Git history starts in July 2012, and the first release, 0.1, followed in November 2012. The author's project page explains the motivation: protecting secret material in a configuration-management repository while still letting other people inspect and contribute to the non-secret parts.

Version 0.4 in 2014 was a major workflow release: it added optional GPG support, stored the symmetric key inside `.git`, added multiple-key support, introduced `git-crypt status`, and began experimental Windows support. Version 0.5 in 2015 added the man page and improved lock and unlock performance with newer Git versions.

Later releases were maintenance-oriented. Version 0.6 in 2017 added OpenSSL 1.1 support, switched to C++11, honored Git configuration such as `gpg.program`, and added `git-crypt.repoStateDir`. Version 0.7 in 2022 addressed macOS argument-list issues, and version 0.8 in 2025 adjusted OpenSSL support and avoided problematic short GPG key IDs.

采用历史

git-crypt became a common answer for repositories that are mostly public or shareable but contain a small number of encrypted secrets. Its README and project page stress graceful degradation: contributors without the key can clone and commit, but cannot read encrypted file contents.

Package-manager adoption is broad for a niche security tool, with packages across Homebrew, Debian and Ubuntu, Fedora-family distributions, MacPorts, Nix, Arch-family repositories, Scoop, and others in the input metadata. That breadth reflects stable CLI demand rather than a large framework ecosystem.

使用方式

Users initialize a repository with `git-crypt init`, mark protected paths in `.gitattributes` with `filter=git-crypt diff=git-crypt`, and unlock after cloning with either GPG keys or an exported symmetric key.

Practitioners use it for secrets that belong beside source or infrastructure code, such as private keys, passwords, API credentials, or environment-specific files. The documentation is explicit about limits: file names, commit messages, symlink targets, and other metadata are not encrypted, and access revocation is not solved for old history.

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

git-crypt is significant because it turns Git's filter machinery into a packaging-friendly secrets workflow without requiring a service, a custom remote, or a separate encrypted repository. That simplicity made it attractive to developers who wanted secrets-in-repo ergonomics with ordinary Git hosting.

It also has the classic maintainer tradeoffs of a security CLI: OpenSSL compatibility, GPG behavior, Git filter semantics, deterministic encryption constraints, and clear documentation of what is not protected.

时间线

  • 2012: Development begins in Git, followed by the 0.1 release.
  • 2014: Version 0.4 adds optional GPG support, multiple-key support, status reporting, and experimental Windows support.
  • 2015: Version 0.5 adds a man page and improves lock and unlock performance.
  • 2017: Version 0.6 adds OpenSSL 1.1 support and switches to C++11.
  • 2022: Version 0.7 fixes macOS and argument-handling issues.
  • 2025: Version 0.8 adjusts OpenSSL support and avoids short GPG key IDs.

Related projects

  • git-remote-gcrypt is named in the README as a better fit for encrypting an entire repository.
  • GnuPG is used by git-crypt's multi-user sharing mode.
  • Git attributes and Git filter drivers are the Git mechanisms that make transparent encryption and decryption work.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:encrypt,decrypt

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 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
.gitattributes.git-crypt/

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本0.8.0
管理器更新时间2026-05-25
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.agwa.name/projects/git-crypt/

安装元数据

软件包元数据

软件包键brew:git-crypt
版本0.8.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/git-crypt
主页https://www.agwa.name/projects/git-crypt/
仓库https://github.com/AGWA/git-crypt
上游文档https://github.com/AGWA/git-crypt#readme
许可证GPL-3.0-or-later
源码归档https://www.agwa.name/projects/git-crypt/downloads/git-crypt-0.8.0.tar.gz
最后更新2026-05-25T16:07:30Z
Pulseupdated
依赖openssl@4
构建依赖docbook, docbook-xsl
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

git-crypt 0.7.0-0.1+b1

Transparent file encryption in git

https://www.agwa.name/projects/git-crypt

sudo apt install git-crypt
  • Section: vcs
  • Architecture: amd64
  • Source Package: git-crypt
  • 5 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Git Crypt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: git-crypt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

git-crypt

nix profile install nixpkgs#git-crypt
  • normalized package name match
  • 匹配方式:Git Crypt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-crypt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

git-crypt 0.7.0-0.1build3

Transparent file encryption in git

https://www.agwa.name/projects/git-crypt

sudo apt install git-crypt
  • Section: universe/vcs
  • Architecture: amd64
  • 5 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Git Crypt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: git-crypt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

git-crypt 0.7.0-r0

Transparent file encryption in git

https://www.agwa.name/projects/git-crypt

sudo apk add git-crypt
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: git-crypt
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Crypt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: git-crypt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

git-crypt-doc 0.7.0-r0

Transparent file encryption in git (documentation)

https://www.agwa.name/projects/git-crypt

sudo apk add git-crypt-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: git-crypt
  • normalized package name match
  • 匹配方式:Git Crypt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: git-crypt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

git-crypt 0.8.0-2.fc44

Transparent file encryption in git

https://www.agwa.name/projects/git-crypt

sudo dnf install git-crypt
  • License: GPL-3.0-or-later AND X11
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: git-crypt
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Crypt
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: git-crypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

git-crypt 0.8.0-1

Transparent file encryption in Git

https://www.agwa.name/projects/git-crypt

sudo pacman -S git-crypt
  • License: GPL3
  • Architecture: x86_64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Git Crypt
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: git-crypt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

git-crypt 0.8.0-1.2

Transparent file encryption in git

https://www.agwa.name/projects/git-crypt/

sudo zypper install git-crypt
  • License: GPL-3.0-or-later
  • Category: Productivity/Security
  • Architecture: x86_64
  • Source Package: git-crypt
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Crypt
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: git-crypt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

git-crypt

sudo port install git-crypt
  • normalized package name match
  • 匹配方式:Git Crypt
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/git-crypt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/git-crypt

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

来源线索

由仓库数据生成

此页面由 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