exec'ing git commands from php over web requests is a hassle. This post cracked it for me. It's mostly a permissions dance, but now doing automated git commands over the web.