-
-
Save jk2K/b5b47f659ef76a1d6ec1 to your computer and use it in GitHub Desktop.
Revisions
-
tavori revised this gist
Sep 21, 2015 . 1 changed file with 3 additions and 4 deletions.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 @@ -3,7 +3,6 @@ // 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 2>& 1' ); echo 'success'; } -
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