June 18, 2025

How I Use: Git Crypt for Git

How I use git-crypt to encrypt files stored in Git repositories for secure version control of sensitive data.

I use git-crypt to encrypt files stored in a repository. Here's how:

Summary

  • git-crypt init: Setup the repo for the first time
  • secret* filter=git-crypt diff=git-crypt in .gitattributes: Enable for all files beginning with secret
  • git-crypt status: Check encryption status of files
Git Crypt Git Encryption Security Secrets Management