-
-
Save dulumao/4b654de3248969db655c493b97c8bfe2 to your computer and use it in GitHub Desktop.
Revisions
-
cowboy created this gist
Oct 11, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <?php // Use in the "Post-Receive URLs" section of your GitHub repo. if ( $_POST['payload'] ) { shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); } ?>hi