无法使用 `git lfs push` 命令推送到 gitlab

Could not push to gitlab using `git lfs push` command

我使用 git lfs 跟踪项目中的多个文件。之后我 addcommit 他们成功了。但是使用 git lfs push origin develop --all 命令将文件推送到 gitlab 服务器出现以下错误。

batch response: Access forbidden. Check your access level.

服务器配置:git实验室服务器的版本是v9.4.3。我通过更改 gitlab.rb 文件中的 gitlab_rails['lfs_enabled'] = ture 启用了 git lfs。之后我 gitlab-ctl reconfiguregitlab-ctl restart 服务器。

客户端:git 的版本是v2.11.0.windows.1git lfs env的输出如下。

git-lfs/2.3.4 (GitHub; windows amd64; go 1.8.3; git d2f6752f)
git version 2.11.0.windows.1

Endpoint=http://<ip>:<port>/<group>/<project>.git/info/lfs (auth=basic)
LocalWorkingDir=D:\project
LocalGitDir=D:\project\.git
LocalGitStorageDir=D:\project\.git
LocalMediaDir=D:\project\.git\lfs\objects
LocalReferenceDir=
TempDir=D:\project\.git\lfs\tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=D:\project\.git\lfs
AccessDownload=basic
AccessUpload=basic
DownloadTransfers=basic
UploadTransfers=basic
GIT_LFS_PATH=D:\Program Files\Git LFS
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"

PS: 我也 运行 git config lfs.batch true 命令但没有任何改变。文件总大小约为 12GB。 url 的 httpshttp 协议均已检查。 Connection/Response服务器时间默认。我有权推送 origin/develop。此外,git lfs fetch 命令成功运行(即没有访问禁止错误)。

除了上述所有为存储库启用 lfs 的步骤外,还有一个小的 LFS 选项位于许多选项之间:存储库页面 -> setting -> general 必须启用它。

它是存储库页面中的最后一项,因此您必须向下滚动到底部才能将其打开。