Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sourcetree can't pull: error: cannot open '.git/FETCH_HEAD': Permission denied

Tara Stewardson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2023

Hi,

I have been using Sourcetree (3.4.8) to pull from Bitbucket data center for a long time, but recently have had issues with it and it is no longer working.

No recent updates, but a little while ago Sourcetree wouldn't open (the blue logo came up but nothing happened). A reinstall fixed the issue, but after reconfiguring, Sourcetree stopped being able to pull anything and threw the error:

“git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
error: cannot open '.git/FETCH_HEAD': Permission denied
error: cannot open '.git/FETCH_HEAD': Permission denied
error: cannot open '.git/FETCH_HEAD': Permission denied
error: cannot open '.git/FETCH_HEAD': Permission denied
Completed with errors, see above.”

I am able to successfully pull from the same repo in a Git Bash terminal (same SSH key as well), so I am not sure what's going on. 

I have had a look at the logs, but it is not obvious where this error occurs.

Any help is much appreciated, even just on where to look for more info.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events