Bitbucket - 使用 git lfs 推送回购

Bitbucket - push repo with git lfs

当我尝试将我的文件推送到 bitbucket 存储库时(其中一些由 git LFS 跟踪,模式为 *.uasset),我收到此错误(我已更改--- 的实际凭据):

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.

我不知道怎么了。你能告诉我如何解决这个错误吗?

感谢评论。看来Bitbucket确实不提供LFS作为服务,所以我准备试试GitLab

实际上,几个月后(2016 年 7 月),BitBucket 确实提供了对 LFS 的支持。

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.

有关 Git LFS 的更多信息,请参阅 this blog

该新选项在 SourceTree 中也可见: