Gitlab Remote Rejected Error

今天迁移一个项目到 Gitlab,前面一切正常,当推送标签时

1
$ git push -u origin --tags

收到下面的错误提示:

1
2
3
4
5
6
7
...

remote: GitLab: Failed to authorize your Git request: internal API unreachable
To <...>
! [remote rejected] origin/HEAD -> origin/HEAD (pre-receive hook declined)

...

这里找到了解决方案:

取消选择组设置里的 LFS 一项:

操作步骤:

  1. 打开并编辑组:https://<URL>/admin/groups/<GROUP>/edit
  2. 找到 Large File Storage 配置
  3. 取消选择下面一项:
1
[ ] Allow projects within this group to use Git LFS