If you're doing this then there's no reason to use git. Just sync a raw directory.
Re:Keybase launches encrypted Git
by FullyFunctional on Friday October 06, 2017 @08:31PM
(#15421518)
No, I use git to track my development history and I push to github. These are two difference issues.
EDIT: I should emphasize that this model is way more convenient than manually having to remember to push and pull all the time. Now push is only for publishing outside as it should be.