Git pre-push hooks -


i run unit-tests before every git push , if tests fails, cancel push, can't find pre-push hook, there pre-commit , pre-rebase only.

i rather run test in pre-commit-hook. because change recorded when committing. push , pull exchange information recorded changed. if test fails have "broken" revision in repository. whether you're pushing or not.


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

javascript - After add transform scale, I can't set the section to center -