pre-push git hook?

前端 未结 2 1069
庸人自扰
庸人自扰 2021-01-14 08:07

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 change

2条回答
  •  滥情空心
    2021-01-14 08:53

    Take a look at this patch.

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

提交回复
热议问题