如何在 WSL2 上安装 git-lfs?

How to install git-lfs on WSL2?

fatal: 'lfs' appears to be a git command, but we were not
able to execute it. Maybe git-lfs is broken?

在kali或ubuntu上安装git-lfs很简单,但是步骤不好找。就我而言,这是因为我需要它用于 git subrepo

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.

运行 WSL中的这些

  1. sudo apt-get install git-lfs
  2. git lfs install

Readme

这是为了在 WSL 中使用,如果你想在 windows

  1. here
  2. 下载 windows 安装程序
  3. 运行 windows 安装程序
  4. 为 windows 提示和 运行 git lfs install
  5. 启动命令 prompt/or git