<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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 (<a href="https://github.com/aanand/git-up" class="">https://github.com/aanand/git-up</a>) depending on your workflow.<div class=""><br class=""></div><div class="">The you can use a post-commit hook to perform the push to your ‘remote’ repository.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">STEVE</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 19, 2015, at 5:58 AM, Mikhail Gorbulev <<a href="mailto:alcazoid@gmail.com" class="">alcazoid@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi,<br class=""><br class="">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.<br class="">Of course it might cause problems with merging, but I think it might be solved via standart git mergin mechanism.<br class=""><br class="">Thanks,<br class="">M.<br class="">_______________________________________________<br class="">Password-Store mailing list<br class=""><a href="mailto:Password-Store@lists.zx2c4.com" class="">Password-Store@lists.zx2c4.com</a><br class="">http://lists.zx2c4.com/mailman/listinfo/password-store<br class=""></div></blockquote></div><br class=""></div></body></html>