Bitbucket git LFS gives weird error message

I worked on git LFS through a bitbucket for a while without any problems. I worked on my own, but recently an intern joined us and we cannot delete files from his machines.

We were able to clone the repo on his machine (including large files), make several local commits without problems. Although, when it comes to clicking , we have an authentication problem that states

Authentication Required: Authorization Error: https: // bitbucket ...... Make sure that you have the correct access to the repository

The problem is shown in the image below:

enter image description here

Please note that my trainee has write permissions to the repo (in the bitpack).

Any idea what is going on?

+5
source share
2 answers

I have the same problem (still not fixed), and I do not have enough reputation to comment on your post. There is a closed question here with the same question about us.

We probably had an authentication problem with Git LFS. I would recommend running git lfs env and possibly git config -l to see your current environment.

EDIT

HTTPS doesn't seem to work with Git LFS. Using SSH solved my problem.

HTTP: https: // {user} @ bitbucket.org / {repo} .git

SSH: git @ bitbucket.org: {repo} .git

EDIT 2

I used Git LFS Version 2.0.1 and decided to upgrade to version 1.5.2 to copy SourceTree congif (because cloning and clicking worked with SourceTree). And now everything works with HTTPS (I think they broke something with the new version)!

SourceTree Config

+2
source

This is a known issue: https://jira.atlassian.com/browse/BSERV-9623

Jade Skaggs suggests performing in one of the comments

 git config 'lfs.locksverify' false 

for any repo affected.

This works for me. However, it may have unwanted side effects.

EDIT:

It should be noted that the warning about authentication and authorization is as follows: warning.

You can ignore it. The push is really successful.

+1
source

Source: https://habr.com/ru/post/1265278/


All Articles