Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php git pull webhook

if ( $_POST['payload'] ) {
  shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' );
}
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #php #git #pull #webhook
ADD COMMENT
Topic
Name
9+6 =