我有一個帶有遠程 bitbucket 的 lfs 本地存盤庫。我與 Unity 和 Visual Studio 合作,我的日常作業由 Visual Studio 協助提交。我當前的提交不允許被push-ed。
Git 會拋出丟失檔案錯誤,但是當我按照路徑操作時,檔案就在那里并且沒問題。
我該如何解決這個問題?
uj5u.com熱心網友回復:
正如這里看到的,你的錯誤應該是這樣的:
(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 '[email protected]:group/project.git'
按照這個問題,從
git lfs fetch --all
然后看看錯誤是否仍然存在。
如果是,請從新克隆的 repo ( git lfs clone my-repo) 中嘗試
從討論:
git lfs fetch --all無法作業,因為缺少的東西從來沒有被推到過- 一個新的
git lfs clone,然后報告舊的存盤庫本地作業確實被添加、提交和成功推送。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/351143.html
標籤:混帐
下一篇:gitclone找不到遠程倉庫
