Return to Snippet

Revision: 52249
at October 18, 2011 07:42 by adampatterson


Initial Code
/**
 * Git Pull
 *
 * @author Adam Patterson
 * 
 * Use: echo pull();
 * 
 * Use a GitHub Post-Receive URL and automatic call this function with a URL.
 */

function pull ( )
{
	return shell_exec('git pull');
}

Initial URL
http://www.adampatterson.ca/blog/2011/10/diy-simple-staging-server/

Initial Description
Update a Git repo with PHP

Initial Title
Git Pull with PHP

Initial Tags
git

Initial Language
PHP