Windows下上传超过25M的大文件
1.cmd中,使用’cd f:‘进入F盘,先在F:/github中创建一个空文件夹’temp’
2.切换至文件夹所在目录’F:/github/temp’
cd github/temp
3.将库克隆到本地
github链接:https://github.com/yyzhou-gh/Construction-of-genomic-prediction-model-for-maize-CUBIC-population-yield-based-on-directed-learning
git clone https://github.com/yyzhou-gh/Construction-of-genomic-prediction-model-for-maize-CUBIC-population-yield-based-on-directed-learning.git
网络原因可能需要多次尝试才能成功
4.cd 库目录,进入本地库
cd F:\github\temp\Construction-of-genomic-prediction-model-for-maize-CUBIC-population-yield-based-on-directed-learning
将要上传的文件全部拷贝到本地库中
5.下载git-lfs:
https://git-lfs.github.com/
git init 初始化本地库
git lfs install 安装Large File Storage(LFS)工具
git lfs track “.jar” 定义lfs*要追踪的文件类型
git add .gitattributes 生成对应文件
6.git add . 装载本地库
7.git commit –m “commitInfo”
8.git push origin main
网络问题,总是会报错,要不停尝试
尝试N次终于成功