1、下载 git-lfs

下载地址:https://github.com/git-lfs/git-lfs/releases

git 上传超过 100MB 的大文件

选择Windows 386 或者 Windows Installer.

2、安装 

如果选择Windows 386,解压下载的压缩包, 在命令行进入解压的目录,运行 git-lfs.exe

git 上传超过 100MB 的大文件

3、

 进入 git仓库所在的目录后:

①git lfs install , 每台机器的每个仓库都运行一次该命令

git 上传超过 100MB 的大文件

②追踪pdf文件,git lfs track "*.pdf"

git 上传超过 100MB 的大文件

③提交代码需要将.gitattributes文件提交至仓库. 它保存了文件的追踪记录,git add .gitattributes

git 上传超过 100MB 的大文件

git push时 有 Uploading LFS objects字样

 git 上传超过 100MB 的大文件

参考:

git 上传超过 100MB 的大文件

Git LFS的使用

相关文章:

  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2021-04-18
  • 2022-12-23
  • 2021-09-29
  • 2020-01-10
  • 2019-11-30
相关资源
相似解决方案