[pass] pass git pull before every commit

Lenz Weber mail at lenzw.de
Thu Mar 19 12:40:51 CET 2015


this is a simple post-commit hook that has been recommended here from
time to time:

git pull --rebase
git push

(in ~/.password-store/.git/hooks/post-commit - don't forget to chmod +x)


On 19.03.2015 10:58, Mikhail Gorbulev 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


More information about the Password-Store mailing list