Skip to content

Instantly share code, notes, and snippets.

@MarshalW
Last active December 8, 2023 07:18
Show Gist options
  • Save MarshalW/7c42ae169ffe059814adfe75c18a2b0e to your computer and use it in GitHub Desktop.
Save MarshalW/7c42ae169ffe059814adfe75c18a2b0e to your computer and use it in GitHub Desktop.
git lfs 安装和配置

git lfs 使用

# 安装
sudo apt-get install git-lfs -y

# 使用
git lfs install

# 和普通 git 一样使用
git clone https://www.modelscope.cn/ZhipuAI/chatglm3-6b-32k.git

# 增加日志,方便排错
GIT_TRACE=1 git clone  https://www.modelscope.cn/AI-ModelScope/stable-diffusion-xl-refiner-1.0.git

# 如果 clone 出现 Killeding content: ..
# 原因是系统内存不足,8GB 内存出现过问题,调整为16GB问题解决
rm .git/index.lock
git restore --source=HEAD :/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment