File encryption in Git Repository

encryption, git

Solution

I know my answer is late but there is plenty of alternatives for storing secrets in git repos:

- Git-crypt

- BlackBox

- SOPS

- Transcrypt

Most of them use GNU Privacy Guard (GPG), symmetric key encryption, and/or cloud key services (SOPS). If you just want a simple encryption mechanism with password you can also take a look at ansible vault, which doesn't require generating keys for each account.

Problem

Is there any way (in built or add-on) to encrypt individual files in a repository, accessible by limited people. Files when checked in by those folks will auto encrypt and decrypt when checked out. They will stay encrypted if tried to be accessed by other people.

Original source