Git 推送时 JSON inputB/s 意外结束

Use*_*716 5 git git-lfs

当我尝试将文件推送到 git 时,我看到以下错误。

Remote "origin" does not support the LFS locking API. Consider disabling it with:
  $ git config lfs.https://gitlab.foobar.fr/templates/scrape.git/info/lfs.locksverify false
batch request: unexpected end of JSON inputB/s                                  
error: failed to push some refs to 'git@gitlab.foobar.fr:/templates/scrape.git'
Run Code Online (Sandbox Code Playgroud)

我可以拉取其他文件并将其提交到存储库,这是什么问题?

Use*_*716 7

LFS 在存储库上未处于活动状态,因此不支持 LFS 锁定 API。

为了在 GitLab 中解决这个问题,我激活了:

Settings > General > Visibility, project features, permissions > Git Large File Storage (LFS)

这在存储库上启用了 LFS。