Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Use in the "Post-Receive URLs" section of your GitHub repo.
  4.  
  5. if ( $_POST['payload'] ) {
  6.   shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' );
  7. }
  8.  
  9. ?>hi