I'm trying to write a git post-commit file in node.js and I'm having trouble.
The file seems to have to be named
post-commit
.git/hooks
You can have the post-commit file run a separate JavaScript file.
post-commit:
#!/bin/bash/
node yourJavascriptFile.js