Pre Push Script You can set up pre-push hooks by following below steps: Run node ./pre-push.js such that pre push hook is created. create a script with name of pre-push in package json which will run at the time of pushing to repository.