tags:

views:

139

answers:

1
+1  Q: 

pre-push git hook?

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?

+1  A: 

Take a look at this patch.

See .git/hooks/ in your repo for sample hooks, maybe you will see some alternative.

takeshin