Post-Receive Hook


/ Published in: Bash
Save to your folder(s)

Make sure it has the appropriate rights.
chmod -x post-receive


Copy this code and paste it in your HTML
  1. #!/bin/sh
  2. cd /path/to/working-copy/ || exit
  3. unset GIT_DIR
  4. git pull repo branch

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.