我已经在LFS上使用Gitlab了好一阵子,但今天却以某种方式遇到了这个问题:

me@some-PC MINGW32 /b/Unity Projects/Platballer (master)
$ git push
LFS upload missing objects: (32/33), 30 MB | 0 B/s
Uploading LFS objects:  97% (32/33), 30 MB | 0 B/s, done
  (missing) Assets/External Assets/TimelineEvents/setup-guide.pdf (6ef8ef61e49821309de416925bf4e068ebb10a57f3398cb926e967eeb90cf034)
Counting objects: 401, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (400/400), done.
Writing objects: 100% (401/401), 1.40 MiB | 9.56 MiB/s, done.
Total 401 (delta 177), reused 0 (delta 0)
remote: Resolving deltas: 100% (177/177), completed with 31 local objects.
remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".
To arvzrg.asuscomm.com:arvz/platballer.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:me/project.git'

所以我按照他们说的做了,然后运行了 git lfs push-所有原始大师
这给了我:
Uploading LFS objects: 100% (330/331), 52 MB | 0 B/s, done
LFS upload missing objects:
  (missing) Assets/External Assets/TimelineEvents/setup-guide.pdf (6ef8ef61e49821309de416925bf4e068ebb10a57f3398cb926e967eeb90cf034)

好像做了什么都需要做,对吧?因此,我尝试再次进行推送,但是仍然遇到与以前完全相同的问题。

我正在网络上的服务器上运行自己的GitLab安装。

我还能在这里做什么?

最佳答案

检查这是否类似于gitlab-org/gitlab-ce issue 40616:

关于Git推送失败(LFS上传丢失的对象),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52424868/

10-11 10:57