While running the command git clone I am facing error

I am facing error - could not create work tree dir ‘layer5’: Permission denied while clonning the Layer5 repo.

Can suggest me some solution.

Hey @Aman_Kumar , remove “–depth=1”, and then try it will work as I was also facing the same issue or write sudo in the beginning

1 Like

Also i hope you have forked this repo, before cloning

1 Like

@Aman_Kumar as inferrable by error Permission denied, you might not have permission to create the directory in your current directory, you can solve this in two ways first run the command with sudo privilege sudo git clone --depth=1 https://github.com/AmanKumar6603/layer5.git, secondly try in other directory where you have write permission.

1 Like

Thanks @Suruchi_Kumari and @Zaki_Shaikh It is now working