安装完gitosis以后要记得修改post-update权限 sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update