我卸载了git
和它的所有依赖性
pacman -Rcns git
然后进行系统升级
pacman -Syu
然后我安装了git-lfs
,它重新安装了git。
pacman -S mingw-w64-x86_64-git-lfs
但我得到
$ git status
git-lfs filter-process: line 1: git-lfs: command not found
fatal: the remote end hung up unexpectedly
检查已安装了哪些名称为git的包:
$ pacman -Q | grep git
git 2.37.1-1
mingw-w64-x86_64-crt-git 10.0.0.r54.gb4116e310-1
mingw-w64-x86_64-git-lfs 3.2.0-1
mingw-w64-x86_64-headers-git 10.0.0.r54.gb4116e310-1
mingw-w64-x86_64-libwinpthread-git 10.0.0.r54.gb4116e310-1
mingw-w64-x86_64-winpthreads-git 10.0.0.r54.gb4116e310-1
问题
为什么git-lfs
不安装?
发布于 2022-07-26 19:29:38
这里的台阶
除上述步骤外,
安装git-lfs
$ /mingw64/bin/git-lfs install
Git LFS initialized.
现在的问题是,mingw64/bin
不在路径上;我选择将git-lfs
复制到git
所在的位置
cp /mingw64/bin/git-lfs /usr/bin/
然后做最后一步
$ git lfs install
Updated Git hooks.
Git LFS initialized.
https://stackoverflow.com/questions/73128046
复制相似问题