I would like to run a compression script before git push
such that anytime a user tries to push changes to a remote repository, it checks for uncommitted changes in the compressible assets, aborts git push
, runs git commit
, then runs git push
again.
Is something like that possible using only git hooks?