I am using Ubuntu 16.04 installed on Virtual box. I have installed LAMP and git successfully. I tried to clone my git repository using terminal but it shows:
fatal: could not create work tree dir 'directory-name': Permission denied
I tried to give directory permission using the following command:
sudo chmod 755 /var/www/html
but it is not working.