0


git did not exit cleanly (exit code 128) 的解决--LFS方向

错误描述:

同事重装了内网服务器,部署了Git服务,换了Git地址。

重新下载git工程,结果报错: git did not exit cleanly (exit code 128)

只看这个红色的简要报错信息,网上找的解决办法一大堆,并且不对症。只好耐下心,看更多的报错信息:

Errors logged to E:\qy_project\tplib.git\lfs\logs\20220523T134822.783014.log
Use git lfs logs last to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: ThirdParty/AssetBundleRelated/AssetBundles-Browser/Documentation/images/ABundleBrowserIconY1756Basic.png: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

看更多日志信息后,感觉重点是这句:smudge filter lfs failed

按这个再去谷歌查,结果发现了这个文章:

https://kerwenzhang.github.io/git/2020/04/14/Git-LFS-issue/

解决办法:

1,同时按下键盘上的微软键+R,打开运行窗口,输入cmd

2,在cmd命令控制台里,输入命令:

git lfs install --skip-smudge

如图:

再运行Git 进行clone(克隆)等操作,就不再报错了。

标签: git

本文转载自: https://blog.csdn.net/chenggong2dm/article/details/124930230
版权归原作者 常城 所有, 如有侵权,请联系我们删除。

“git did not exit cleanly (exit code 128) 的解决--LFS方向”的评论:

还没有评论