Posted By

Seich on 05/01/11


Tagged

git hook post-receive


Versions (?)

Post-Receive Hook


 / Published in: Bash
 

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

  1. #!/bin/sh
  2. cd /path/to/working-copy/ || exit
  3. unset GIT_DIR
  4. git pull repo branch

Report this snippet  

You need to login to post a comment.