<?php $output = shell_exec('git pull origin Staging 2>&1'); echo "<pre>$output</pre>"; //$output1 = shell_exec( 'cd public_html && git reset --hard HEAD && git pull'); //echo "<pre>$output1</pre>"; ?>