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
相关推荐
zly350022 分钟前
centos7 mount设备挂载 /dev/sda1/硬盘挂载
linux·运维·服务器
工业一体机老司机29 分钟前
工业一体机选购后的系统部署:Ubuntu下Docker容器化运行与GPIO配置
linux·ubuntu·docker·人机交互
哎呦,帅小伙哦1 小时前
进程监控工具——htop
linux·运维·服务器
夏虫不可与之言冰2 小时前
Windows WSL2 (Ubuntu) 搭建 ESP‑IDF 6.1 开发环境全过程演示
linux·windows·ubuntu·esp32·乐鑫科技·乐鑫eim·乐鑫代理商
春涧草茶3 小时前
慢就是快12-12手动抛出异常
java·linux·前端
KING-WU5124 小时前
Linux 工具之Make 与 Makefile
java·linux·服务器
Lsetea4 小时前
OpenSSL报certificate is not yet valid:error 9与notBefore时间排查
linux·运维·https·ssl证书·openssl
魔法阵维护师4 小时前
Linux 命令行入门踩坑记录:从 VMware 装系统到文件管理
linux·运维·服务器
Apipi*5 小时前
30天速通Linux 第七章进程间通信
linux·运维·服务器
emo_2b5 小时前
Pycharm配置conda解释器时遇到的问题及解决方法
linux·pycharm·conda