Config local git repo to use .githooks folder as hooks path, and lint diff with master on pre-push:
git config --local core.hooksPath ./.githooksConfigure git hooks to your liking with this guide
If you need to avoid executing a git hook, pass the --no-verify option to the git command like git push --no-verify
Unset the custom hooks path with git config --local --unset core.hooksPath, to use default .git/hooks folder.
To add this git manager to another project check this guide