This is my revision of Polonskiy's Gist. It's basically a condensed version of the latter. Please refer to his version for further details, such as references which inspired the method proposed here.
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes