Adding a Git repo to a server
Andrew Fletcher published: 2 August 2021 (updated) 29 September 2023 3 minutes read
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously delivered the following error
fatal: could not create work tree dir '{project}
': Permission denied
My initial thought was the error due to server permission... being sudo. This was tested by running the command
sudo git clone git@bitbucket.{username}/{repo}.git
Which generated the error