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
相关推荐
sunflower_w17 分钟前
linux I2C核心、总线与设备驱动
linux·运维·服务器
Ronin3051 小时前
【Linux系统】进程间通信:System V IPC——共享内存
linux·服务器·system v 共享内存
基于python的毕设2 小时前
C语言栈的实现
linux·c语言·ubuntu
2301_767233222 小时前
Git使用和理解上的一些问题
git
luoqice3 小时前
linux下找到指定目录下最新日期log文件
linux·算法
林开落L3 小时前
库的制作与原理
linux·开发语言·动静态库·库的制作
2401_888423094 小时前
Linux软件编程-线程(2)
linux
共享家95274 小时前
linux-数据链路层
linux·网络·macos
Demisse5 小时前
[Linux] Linux文件系统基本管理
linux·运维·服务器
小米里的大麦6 小时前
025 理解文件系统
linux