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
Post a Comment