Bitbucket - push repo with git lfs

久未见 提交于 2019-12-19 07:43:53

问题


When I'm trying to push my files into bitbucket repo (some of them tracked by git LFS, pattern is *.uasset), I'm getting this error (I've changed actual credentials with ---):

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to https://---@bitbucket.org/---/---.git

Git LFS: (0 of 241 files) 0 B / 372.25 MB                                      

Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects
Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects
Post https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/---/---.git/info/lfs/objects/batch: stopped after 3 redirects

error: failed to push some refs to 'https://---@bitbucket.org/---/---.git'

Completed with errors, see above.

I don't know what's wrong. Can you advice me how to solve this error?


回答1:


Thanks for comments. It seems that Bitbucket really doesn't provide LFS as a service, so I'm going to try GitLab.




回答2:


Actually, BitBucket does provide support for LFS a few months later (July 2016).

See issue 11204

Today we released Git LFS in Beta, native in Bitbucket Cloud.
While LFS support is in Beta, teams up to 5 users get 1 GB of LFS storage and paid team's storage is based on your user tier.

To get started with the Git LFS Beta, you can enable it in 1 click on the repositories you would like to try it out on. Simply head to the ‘Git LFS Beta’ section on the left side bar in the repository settings in Bitbucket Cloud.

For more information on Git LFS, please see this blog.

That new option is also visible in SourceTree:



来源:https://stackoverflow.com/questions/36115382/bitbucket-push-repo-with-git-lfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!