Sometimes you want to keep folders in sync across different computers with some kind of file versioning, maybe you also want some kind of backup. You could use a private repository on GitHub, Bitbucket or Gitlab for that. However, when that data is particularly private, you might want to encrypt your data. git-remote-gcrypt
can do that for you. As other guides on that topic were not very specific about syncing between two different computers, this guide focuses on that.
These are the sources I used:
- https://manpages.debian.org/testing/git-remote-gcrypt/git-remote-gcrypt.1.en.html seem to be the official manpages.
- https://caolan.uk/notes/2017-04-27_encrypted_git_repositories.cm
- https://git-annex.branchable.com/tips/fully_encrypted_git_repositories_with_gcrypt/
- https://www.alwaysrightinstitute.com/gcrypt/
- and I used this gist to answer a question here https://superuser.com/a/1750771/1744178