You could have a:
- update hook for JSHint (as in "JSHint on Git Push (Update Hook)")
- post-update hook for deploying the app (as in "using git to deploy my node.js app to my production server")
A nice trick, on the repo representing your deployed app, is to add an attribute which will minify all css files.
See "Compress JS/CSS files on deploy using Git"
My point is: if you need to trigger anything, even with grunt, you need to do so from a git commit.
You don't have to code anything.
brunch build
will do the linting and stuff. Just put it as git hook.
That would be in a post-update hook then, with a cd to a non-bare repo in which you would:
unset GIT_DIR
git pull
brunch build