小编k4j*_*4jc的帖子

由于丢失或损坏的本地对象 git-lfs,git push 被拒绝

我是新手git-lfs,以下是我配置并尝试推送的步骤git-lfs

git clone git@gitlab.example.com:group/project.git 将 tar.gz lfs 文件从不同的 repo 复制到我当前的 repo,然后

git lfs install                      
git lfs track "*.tar.gz"
git add .gitattributes
git commit -m "message"

Run Code Online (Sandbox Code Playgroud)

同时git push origin master

我面临的错误:

(missing) code.tar.gz (f2b4bf22bcb011fef16f80532247665d15edbb9051***)
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: 'git config lfs.allowincompletepush true'
error: failed to push some refs to 'git@gitlab.example.com:group/project.git' …
Run Code Online (Sandbox Code Playgroud)

git github bitbucket gitlab git-lfs

4
推荐指数
1
解决办法
2125
查看次数

标签 统计

bitbucket ×1

git ×1

git-lfs ×1

github ×1

gitlab ×1