I want to send email to my other developer whenever i do the commit and before i push the commits to the server. I believe i have to use pre-push
hook.
#!/bin/sh
GIT_DIR_="$(git rev-parse --git-dir)"
BRANCH="$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))"
//How to send email to my other developer.