I am using git and have the following problem:
In the company where I work we want to protect the source code from theft.
For example, when a a developer leaves and takes the source code of a project with him.
To prevent this, I came to the conclusion that encrypting the source code is the best choice, like git-crypt does. But git-crypt does not work:
- If I add a user's GPG key, he can decrypt all files, and the protection measure would be worthless.
The files of the developer should be decrypted locally and only remotely. (This way the developer does not always have to encrypt, push, decrypt the files).
I tried to re-program git-crypt in Python (because of cross-platform) but then failed due to the git attributes/smudge, clean filter drivers.
Do you know a possibility or an application that solves my problem?
I don't consider Keybase from this answer, because it encrypts the entire repository. And all people that I will add to the repo have full permission to all the Files.