Search code examples
linuxgitxamppgitlab

Permission denied while cloning project in htdocs


I am new to linux and I am trying to clone a project into a folder that am currently in contained in opt/lampp/htdocs using the command git clone git@gitlab.com:whatever . but i am getting a permission denied error. What can i do to resolve this issue


Solution

  • try to give full permission to your htdocs folder

    sudo chmod 777 opt/lampp/htdocs

    Then it will ask for password enter and go ahead. learn More Here :)