本文主要是介绍LFS传输大文件,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage
使用 Git LFS:Git LFS 旨在将大型文件存储在普通 Git 存储库之外,用轻量级引用替换它们。您可以通过运行以下命令来安装和设置 Git LFS:
git lfs install
git lfs track "*.pdf" # This will track all PDF files, or you can specify specific files
git add .gitattributes # This file tells Git which files to handle with LFS
git add <your-large-file>
git commit -m "Track large files with LFS"
git push
这篇关于LFS传输大文件的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!