赞
踩
Git Large File Storage(下载网址:Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. (git-lfs.com)Git Large File Storage | Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. (git-lfs.com))
安装时需要注意安装目录要与git有关联(默认电脑安装了git)
安装目录
E:\Program Files\Git\bin\Git LFS
这里需要找到git目录下的bin文件,安装到这里。
git lfs install
- git init #创建本地仓库环境
- git lfs install #安装大文件上传应用
- git lfs track * #追踪要上传的大文件,*表示路径下所有文件
- git add .gitattributes #添加先上传的属性文件(要先上传属性文件,自己会生成,不要担心没有)
- git commit -m "first"#添加属性文件上传说明
- git remote add origin https://github.com/Lxy811/USV01.git #建立本地和GitHub仓库的链接
- git push origin master #上传属性文件
- git add * #添加要上传的大文件,*表示路径下的所有文件
- git commit -m "Git LFS01"
- git push origin master #上传大文件
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
就是要买流量包了,(花钱的三思后做,于是最终我压缩上传网盘了)
选择账户-》setting-》如下图
(然后往下拉找到,add more data就可以消费了)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。