deploying a website/webapp via git/gitolite permissions error
I've setup a development/testing server where developers can push repositories to a remote repo/webserver via gitolite/git. On the repository site everything works well and developers can use the server however: Problem: I want to deploy the code to an apache documentroot (chown'd apache:apcahe and chmod'd 755). I am following these instructions and when edit my post-receive hook as describe like so: #!/bin/sh echo "deploying to DocumentRoot" GIT_WORK_TREE=/var/www/www.example.com git checkout -f however now when I run git push from my local repo I get permissions errors like: error: git