tool

git-crypt

git-crypt is an open-source command-line tool that enables transparent encryption and decryption of files in a Git repository. It uses GPG (GNU Privacy Guard) to encrypt sensitive data, such as API keys, passwords, or configuration files, while keeping non-sensitive files in plain text. This allows developers to securely store secrets in version control without exposing them in the repository history.

Also known as: git crypt, gitcrypt, git-crypt tool, git encryption tool, GPG-based git encryption
🧊Why learn git-crypt?

Developers should use git-crypt when they need to manage secrets (e.g., credentials, tokens, private keys) within a Git repository, especially in collaborative or public projects where sensitive data must be protected. It is ideal for DevOps, CI/CD pipelines, and team environments to prevent accidental exposure of secrets, as it integrates seamlessly with Git workflows and only encrypts specified files.

Compare git-crypt

Learning Resources

Related Tools

Alternatives to git-crypt