Skip to content

Instantly share code, notes, and snippets.

@serweb-labs
Forked from Polanco08/webHook
Last active August 29, 2015 14:13
Show Gist options
  • Save serweb-labs/69c3937c11258dccbc19 to your computer and use it in GitHub Desktop.
Save serweb-labs/69c3937c11258dccbc19 to your computer and use it in GitHub Desktop.
<?php
// usr/bin/git debes verificar que se la ruta correcta en tu serve
// con el comando wich git, esto te regresa la ruta donde esta instalado git
//Este archivo debe de estar alojado dentro del directorio del repositorio
$out = shell_exec("/usr/bin/git pull 2>&1");
var_dump($out);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment