# git-crypt を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop でインストール

git-crypt のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:git-crypt
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install git-crypt
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-crypt
```

  証拠: MacPorts ports tree: devel/git-crypt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add git-crypt
```

  証拠: Alpine Linux edge package indexes: git-crypt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install git-crypt
```

  証拠: Debian stable package indexes: git-crypt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-crypt
```

  証拠: Fedora Rawhide package metadata: git-crypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#git-crypt
```

  証拠: nixpkgs package indexes: pkgs/by-name/gi/git-crypt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S git-crypt
```

  証拠: Arch Linux sync databases: git-crypt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install git-crypt
```

  証拠: openSUSE Tumbleweed package metadata: git-crypt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/git-crypt
```

  証拠: Scoop official bucket manifest trees: bucket/git-crypt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:git-crypt
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.8.0
- **ソース概要:** Enable transparent encryption/decryption of files in a git repo
- **ホームページ:** <https://www.agwa.name/projects/git-crypt/>
- **最終更新:** 2026-05-25T16:07:30Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- git-crypt (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.8.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://github.com/AGWA/git-crypt documents repository usage and source history.>
- <https://github.com/AGWA/git-crypt/blob/master/NEWS.md documents release progression from 0.1 through 0.8.>
- <https://www.agwa.name/projects/git-crypt documents the author, motivation, usage model, dependencies, limitations, and project resources.>


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal


## 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

- Unix: .gitattributes, .git-crypt/
## 他のパッケージマネージャ記録

- Debian apt - git-crypt - 0.7.0-0.1+b1: normalized package name match | Debian stable package indexes: git-crypt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Transparent file encryption in git | https://www.agwa.name/projects/git-crypt
- Nix - git-crypt: normalized package name match | 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 apt - git-crypt - 0.7.0-0.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: git-crypt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Transparent file encryption in git | https://www.agwa.name/projects/git-crypt
- apk - git-crypt - 0.7.0-r0: normalized package name match | Alpine Linux edge package indexes: git-crypt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Transparent file encryption in git | https://www.agwa.name/projects/git-crypt
- apk - git-crypt-doc - 0.7.0-r0: normalized package name match | Alpine Linux edge package indexes: git-crypt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Transparent file encryption in git (documentation) | https://www.agwa.name/projects/git-crypt
- dnf - git-crypt - 0.8.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: git-crypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Transparent file encryption in git | https://www.agwa.name/projects/git-crypt
- pacman - git-crypt - 0.8.0-1: normalized package name match | Arch Linux sync databases: git-crypt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Transparent file encryption in Git | https://www.agwa.name/projects/git-crypt
- zypper - git-crypt - 0.8.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: git-crypt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Transparent file encryption in git | https://www.agwa.name/projects/git-crypt/
- MacPorts - git-crypt: normalized package name match | MacPorts ports tree: devel/git-crypt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/git-crypt: normalized package name match | Scoop official bucket manifest trees: bucket/git-crypt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/git-crypt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-crypt.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
