Hacker News new | ask | show | jobs
by beagle3 3864 days ago
I'm sure it works well for you, and you might be aware - but just in case you aren't, that's what "git remotes" are all about - you can write a remote helper instead, and "git push gpg://...." instead of "git gpg push". That's how p4, mercurial, etc client bridges are implemented.

See [0] for more. Obviously, this might be overkill for your use case, but this is the "right" way to do it.

[0] https://www.kernel.org/pub/software/scm/git/docs/gitremote-h...