denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.12k stars 251 forks source link

Enhancement request: PGP Encrypt files before commit #690

Closed cooparo closed 4 months ago

cooparo commented 4 months ago

Would be cool, if we can PGP encrypt (like the obsidian plugins gpgCrypt does) before committing. We could use Github (or Gitlab, etc.) to store our files with total privacy. How should works imo: All the files that are locally stored should be not encrypted, so everything works as usual, like links, preview, etc. (you can try installing gpgCrypt, encrypting some files and you get broken links to headers and broken file's preview, etc.). When you want to commit your work, it encrypts every files and eventually you push everything encrypted to Github, totally safe.

Some cons: you should still able to checkout to previous version of your notes but would be harder to get the difference between files, since they're encrypted.

EricBrunMawuli commented 4 months ago

I was gonna ask for the same feature, it would be great if it was implemented.

Vinzent03 commented 4 months ago

I think what you are searching for is git-crypt. I haven't used it, but according to this issue it seems to work.

cooparo commented 4 months ago

Yep, it's what I was searching about. Tnx u