github的large file storeage

时间:2021-07-18 10:55:20

https://git-lfs.github.com/

1.从这个网址下载git-lfs-windows-amd64-1.1.0.exe,运行这个安装包

2.然后打开git bash

输入git lfs install

3.根据需求来处理大文件

$ git lfs track "*.wav"
Tracking *.wav

$ git lfs track "*.asset"
Tracking *.asset

这2个命令会在对应的目录下生成不同的.gitattributes文件

简直是给跪了,里面有2个超过10M的文件,居然push上去了

$ git push
Username for 'https://github.com': chucklu
Password for 'https://chucklu@github.com':
Counting objects: 563, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (549/549), done.
Writing objects: 100% (551/551), 29.73 MiB | 74.00 KiB/s, done.
Total 551 (delta 197), reused 0 (delta 0)
To https://github.com/chucklu/Tanks-Tutorial.git
6f935a1..121b1ee master -> master