Automic VaultAutomic Vault

brew

Install git-crypt with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Enable transparent encryption/decryption of files in a git repo. Version 0.8.0 via Homebrew; verified 2026-05-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install git-crypt

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install git-crypt

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

Linux

Alpine Linux apkverified · 92%
sudo apk add git-crypt

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

Debian aptverified · 92%
sudo apt install git-crypt

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

Fedora dnfverified · 92%
sudo dnf install git-crypt

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

Nixverified · 92%
nix profile install nixpkgs#git-crypt

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

Arch Linux pacmanverified · 92%
sudo pacman -S git-crypt

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

openSUSE zypperverified · 92%
sudo zypper install git-crypt

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

Windows

Scoopverified · 92%
scoop install main/git-crypt

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

overview

Package summary

Enable transparent encryption/decryption of files in a git repo

Commands and aliases

  • git-crypt

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: blue

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

Risk classifier

blue risk · medium confidence · tool

Why

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

Signals

  • text:encrypt,decrypt

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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/

executables

Installed executables

CommandKindExposureNote
git-cryptcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.8.0
manager updated2026-05-25
local dataok
upstreamnot checked
latest detectednot detected

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

install metadata

Package metadata

Package keybrew:git-crypt
Version0.8.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/git-crypt
Homepagehttps://www.agwa.name/projects/git-crypt/
Repositoryhttps://github.com/AGWA/git-crypt
Upstream docshttps://github.com/AGWA/git-crypt#readme
LicenseGPL-3.0-or-later
Source archivehttps://www.agwa.name/projects/git-crypt/downloads/git-crypt-0.8.0.tar.gz
Last updated2026-05-25T16:07:30Z
Pulseupdated
Dependenciesopenssl@4
Build dependenciesdocbook, docbook-xsl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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