This could be accomplished by a pre-commit hook script that would be as simple at just performing a (git pull), but you may want to look at something like (https://github.com/aanand/git-up <https://github.com/aanand/git-up>) depending on your workflow.
The you can use a post-commit hook to perform the push to your ‘remote’ repository. Additionally you may want to consider a post-receive hook if you want to have a cold ‘remote’ repository. This would do something like trigger another box to pull from the hot ‘remote’ repository. STEVE > On Mar 19, 2015, at 5:58 AM, Mikhail Gorbulev <[email protected]> wrote: > > Hi, > > is there any way to set add a hook to pass to (optionally?) make "pass git > pull" before every "pass git commit" and "pass git push" after? This could be > handy in order to always have password synchronized via git. > Of course it might cause problems with merging, but I think it might be > solved via standart git mergin mechanism. > > Thanks, > M. > _______________________________________________ > Password-Store mailing list > [email protected] > http://lists.zx2c4.com/mailman/listinfo/password-store
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
