1

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. 
Zumry Mohamed
  • 9,318
  • 5
  • 46
  • 51

0 Answers0