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
相关推荐
蜡台16 小时前
Python包管理工具pip完全指南-----2
linux·windows·python
Ujimatsu17 小时前
虚拟机安装Debian 13.x及其常用软件(2026.4)
linux·运维·ubuntu
千百元17 小时前
zookeeper启不来了
linux·zookeeper·debian
AnalogElectronic18 小时前
linux 测试网络和端口是否连通的命令详解
linux·网络·php
Edward1111111119 小时前
4月28日防火墙问题
linux·运维·服务器
子琦啊20 小时前
【算法复习】字符串 | 两个底层直觉,吃透高频题
linux·运维·算法
AOwhisky21 小时前
Kubernetes 学习笔记:集群管理、命名空间与 Pod 基础
linux·运维·笔记·学习·云原生·kubernetes
淘矿人21 小时前
从0到1:用Claude启动你的第一个项目
开发语言·人工智能·git·python·github·php·pygame
小龙在慢慢变强..21 小时前
目录结构(FHS 标准)
linux·运维·服务器
2035去旅行21 小时前
嵌入式开发,如何选择C标准库
linux·arm开发