git传输大文件时候安装git lfs install报错git: ‘lfs‘ is not a git command. See ‘git --help‘.

git传输大文件时候安装git lfs install报错git: 'lfs' is not a git command. See 'git --help'.

报错类似如下:

cobol 复制代码
git lfs install
git: 'lfs' is not a git command. See 'git --help'.

The most similar command is
	log

git lfs install

git: 'lfs' is not a git command. See 'git --help'.

The most similar command is

log

解决办法:

cobol 复制代码
yum install git-lfs
Last metadata expiration check: 0:20:34 ago on Thu 01 Feb 2024 05:13:29 AM UTC.
Dependencies resolved.
================================================================================================================================================================================================================================================================================
 Package                                                         Architecture                                                   Version                                                                 Repository                                                         Size
================================================================================================================================================================================================================================================================================
Installing:
 git-lfs                                                         x86_64                                                         2.11.0-2.el8                                                            appstream                                                         4.4 M

Transaction Summary
================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 4.4 M
Installed size: 16 M
Is this ok [y/N]: y
Downloading Packages:
git-lfs-2.11.0-2.el8.x86_64.rpm                                                                                                                                                                                                                 198 kB/s | 4.4 MB     00:22
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                           198 kB/s | 4.4 MB     00:22
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                        1/1
  Installing       : git-lfs-2.11.0-2.el8.x86_64                                                                                                                                                                                                                            1/1
warning: Unable to get systemd shutdown inhibition lock: Unit systemd-logind.service is masked.

  Running scriptlet: git-lfs-2.11.0-2.el8.x86_64                                                                                                                                                                                                                            1/1
Git LFS initialized.

  Verifying        : git-lfs-2.11.0-2.el8.x86_64                                                                                                                                                                                                                            1/1

Installed:
  git-lfs-2.11.0-2.el8.x86_64

Complete!
cobol 复制代码
git-lfs install
git lfs install
相关推荐
进取星辰1 小时前
24、TypeScript:预言家之书——React 19 类型系统
linux·运维·ubuntu
月上柳青1 小时前
linux-驱动开发之设备树详解(RK平台为例)
linux·驱动开发·dsp开发
阳区欠2 小时前
【Linux】线程的同步与互斥
linux·服务器·c++·线程同步·线程互斥·生产者/消费者模型
WG_172 小时前
Linux:43线程封装与互斥lesson31
linux·运维·服务器
showmethetime2 小时前
centos 中查看 内存及磁盘使用率
linux·运维·centos
Eloudy2 小时前
MacOS 上构建 gem5
linux·运维·macos
suger-J2 小时前
01-centos离线升级至almalinux
linux·centos
小武~2 小时前
ARMV8 RK3399 u-boot TPL启动流程分析 --crt0.S
linux·u-boot·rockchip·arm-v8·tpl
慢一点会很快2 小时前
【Tools】VScode远程调试linux服务器(打断点可视化界面方式)
linux·服务器·vscode
码码哈哈爱分享2 小时前
【2025最新】Vm虚拟机中直接使用Ubuntu 免安装过程直接使用教程与下载
linux·运维·ubuntu