(add-hook 'before-save-hook #'our-git-commit-and-push-all nil t)

our-git-commit-and-push-allはhttps://blog.symdon.info/posts/1604485779/で定義した関数。