Skip to main content

Adding a Git repo to a server

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

Subscribe to BitBucket