Fatal: error when closing sha1 file: Permission denied


#1

I am using git to pull my work from bitbucket but It is giving me these errors.

remote: Counting objects: 15, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 15 (delta 3), reused 0 (delta 0)
fatal: error when closing sha1 file: Permission denied
fatal: unpack-objects failed

It works fine if I do that outside of local development.

Why is that?

pardon me, I am new to local dev.