I have git hooks defined in package.json for pre-commit and I just added one for pre-rebase. The problem is that I do not want the pre-rebase hook to execute on a git pull which happens right now due to the flow. I tried searching how I could prevent it but was unsuccessful and thought of adding one more git hook for git pull which might just prevent the pre rebase hook in package.json but could not find any documentation on how to do it. Can someone point me how to go about it?
script snippet of package.json
"scripts": {
"precommit": "lint-staged && npm test",
"prerebase": "lint-staged && npm test",
"test": "grunt unit-test"
},