title: Execute git commit from php file in current directory
body: <p>I try to execute this code, but it doesn't do anything.
  But when put "git show --summary" in shell_exec it return git statuss.</p>
  
  <pre><code>if($_GET['action']=='add'){
      $output = shell_exec('git add *');
      echo "Add:&lt;pre&gt;$output&lt;/pre&gt;";
  }
  if($_GET['action']=='commit'){
      $output = shell_exec('git commit -m "'.$_POST["txt"].'" ');
      echo "Commit:&lt;pre&gt;$output&lt;/pre&gt;";
  
  }
  </code></pre>
  
  <p>Is it posible to commit git from php, and how?</p>