Install and start Git LFS large file processing module

Original link: https://blog.frytea.com/archives/777/

75

 Git LFS(Large File Storage)是一个Git 扩展,用于更有效地处理大型文件。在基于git 托管大模型的平台拉取AI 模型时常常需要开启这一功能。要在不同的操作系统上安装Git LFS,请按照以下步骤操作: ## 第一步、安装Git LFS ### 对于macOS如果你已经安装了Homebrew,你可以使用以下命令安装Git LFS:

brew install git-lfs

如果你还没有安装Homebrew,可以访问Homebrew 官方网站获取安装指南。 ### 对于Windows访问Git LFS 的GitHub 仓库的Releases 页面。下载适用于Windows 的最新版本的安装程序(.exe 文件)。双击下载的.exe 文件并按照提示进行安装。 ## 对于macOS如果你已经安装了Homebrew,你可以使用以下命令安装Git LFS:

brew install git-lfs

如果你还没有安装Homebrew,可以访问Homebrew 官方网站获取安装指南。 ### 对于Debian-based 系统(如Ubuntu)在终端中运行以下命令:

sudo apt-get update
sudo apt-get install git-lfs

 ### 对于Fedora-based 系统在终端中运行以下命令:

sudo dnf install git-lfs

 ### 对于Arch-based 系统在终端中运行以下命令:

sudo pacman -S git-lfs

 ## 第二步、集成安装完成后,需要运行以下命令以将Git LFS 集成到Git 中:

git lfs install

现在,Git LFS 已经成功安装,并且可以在你的Git 项目中使用。

This article is transferred from: https://blog.frytea.com/archives/777/
This site is only for collection, and the copyright belongs to the original author.