git命令如何打破?

发布于 2025-01-22 02:46:18 字数 401 浏览 0 评论 0原文

我从网站上安装了git LFS,然后运行了git lfs安装,它说:

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

我尝试卸载LFS安装程序并重新安装,但没有更改任何内容。

我在Windows 10,WSL 2,Ubuntu 20.04.4

这是网站: https:// git- lfs.github.com/

I installed git lfs from the website, then ran git lfs install and it said:

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

I tried uninstalling the lfs installer and re-installing, didnt change anything.

I'm on windows 10, WSL 2, Ubuntu 20.04.4

this is the website: https://git-lfs.github.com/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拔了角的鹿 2025-01-29 02:46:18

该网站并不十分清晰,但是在调用git lfs install之前,要获取安装程序并安装它,还有一个额外的步骤! .. git lfs install在安装扩展程序本身后,似乎会进行一些每用户设置。

下载并安装git命令行扩展名。下载并安装后,通过运行为您的用户帐户设置Git LFS:

  git lfs install
 

您只需要每个用户帐户一次运行一次。

(强调矿山)

您可以在主页上找到安装程序,也可以在其下载页面上找到其他操作系统,

https://github.com/git-lfs/git-lfs/releases/

The website isn't very clear, but there's an extra step before calling git lfs install, fetching the installer and installing it! .. git lfs install appears to do some per-user setup after the extension itself is installed.

Download and install the Git command line extension. Once downloaded and installed, set up Git LFS for your user account by running:

git lfs install

You only need to run this once per user account.

(Emphasis mine)

You can find the installer either on the main page or for other operating systems on their downloads page

https://github.com/git-lfs/git-lfs/releases/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文