Could not create work tree dir 'example.com'.: Permission denied

前端 未结 10 723
感动是毒
感动是毒 2020-12-24 05:32

I have got a virtual private server with nginx Virtual Hosts setup (Server Blocks).

I\'ve installed Git and got my ssh keys authenticated with GitHub.

I have

10条回答
  •  旧时难觅i
    2020-12-24 05:57

    Turns out the problem was in the permission. I fix it with the following command

    sudo chown -R $USER /var/www
    

    Please make sure with the $USER variable. I tested and worked on Ubuntu Distro

提交回复
热议问题