[pass] pass git pull before every commit
Steven Bambling
smbambling at gmail.com
Thu Mar 19 11:14:53 CET 2015
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 <alcazoid at gmail.com> 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
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150319/29f4f298/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150319/29f4f298/attachment.asc>
More information about the Password-Store
mailing list