"Write access is required for uploading LFS objects" when pushing to repo? Edited


My colleague & I have been happily using SourceTree (OSX 2.6.3) to push/pull to our repo (with LFS) hosted on bitbucket for the past month or so, however yesterday my colleague suddenly started getting the following error when trying to push:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree -c lfs.customtransfer.bitbucket-media-api.path=/Applications/SourceTree.app/Contents/Resources/git_local/git-lfs/git-lfs-bitbucket-media-api push -v --tags origin refs/heads/master:refs/heads/master
Pushing to https:<repo>
batch response: Write access is required for uploading LFS objects
error: failed to push some refs to 'https:<repo>'
Git LFS: (0 of 9 files) 0 B / 26.51 MB
Completed with errors, see above


Pulling works fine, just not pushing.  Nothing obvious has changed, & the LFS is reporting it still has over 2GB of space available.  I've spent most of today googling for answers but so far have had no luck.  Any ideas?


3 answers

I just got the same error, yesterday as well.  I had stashed some local changes, pulled from the repo, and then applied my stash and committed.  When I try to push the commit, I see the same error.  Haven't been able to figure out what's going on yet.  Hoping someone has an idea on this.  Thanks for the post.

So, haven't been able to find a solution with SourceTree.  But, I downloaded GitKraken, opened the repo, and was able to push successfully with that.  Just thought I'd let anyone know that was having the same issue.


This one is also not working. Still getting the same error.

This error have also begun popping up on different machines in our office. We haven't identified the cause of this issue, but we figured out a temporary work around by switching from HTTPS to SSH. We don't appreciate this, but it is a temporary workaround until we figure out what is causing it.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

135 views 17 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you