Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone fatal: cannot create work tree dir permission denied

so I'm trying to clone a repository from git, into a folder i know I have write access in.

I'm trying to clone it using IntelliJ's built in VCS capabilities, and the git bash program from git-scm.com Both of them return the following error:

fatal: could not create work tree dir '<repo name>' : 
Permission denied

What am I doing wrong?

like image 898
Redrield Avatar asked Dec 05 '22 00:12

Redrield


1 Answers

Use sudo

sudo git clone <url>
like image 154
shoriwa-shaun-benjamin Avatar answered Dec 11 '22 09:12

shoriwa-shaun-benjamin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!