Skip to content

Instantly share code, notes, and snippets.

@Polanco08
Created August 5, 2014 01:52
Show Gist options
  • Save Polanco08/82ece4cae58ce78900c4 to your computer and use it in GitHub Desktop.
Save Polanco08/82ece4cae58ce78900c4 to your computer and use it in GitHub Desktop.
Utilizado para sincronizar tu servidor web con un repositorio en GitHub mediante webHook
<?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