进入 git-lfs 目录卡顿问题。

当前系统ubuntu 22.04
当使用git-lfs 克隆一个项目的时候,会遇到执行 ls 就会非常卡。 进程见 git-lfs 有大占用,io 写入进程也见 git-lfs.
随之寻找解决方法。
https://github.com/git-lfs/git-lfs/issues/5310 中 bk2204 回复到

If you're using Git 2.34 or newer, you also require Git LFS 3.1.0 in order to recognize that Git 2.34 or newer shouldn't print the message. If you still see the issue after using Git LFS 3.1.0 or newer and Git 2.34 or newer, please open a new issue, filling out the issue template and including the output of git config -l.

后发现git-lfs 版本太老旧。

下面是git 和 git-lfs 更新方法。

posted @ 2024-03-22 08:52  lvusyy  阅读(48)  评论(0编辑  收藏  举报