git工具上传文件超过100MB解决方法

2024-04-13 10:44

本文主要是介绍git工具上传文件超过100MB解决方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Github 上传超过100M的大文件 - 简书 (jianshu.com)

看到一个不错的贴子。


29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system
$ git init
Initialized empty Git repository in D:/predict-system/.git/29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git lfs track predict-system.zip
Tracking "predict-system.zip"29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git add .gitattributes29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git commit -m "first"
[master (root-commit) f84f8d9] first1 file changed, 1 insertion(+)create mode 100644 .gitattributes29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$  git remote add origin  https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push origin master
fatal: unable to access 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/': Failed to connect to github.com port 443 after 21040 ms: Couldn't connect to server29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, usegit push --set-upstream origin masterTo have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, usegit push --set-upstream origin masterTo have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push origin master
Remote "origin" does not support the Git LFS locking API. Consider disabling it with:$ git config lfs.https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/info/lfs.locksverify false
Post "https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/info/lfs/locks/verify": dial tcp 20.205.243.166:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
error: failed to push some refs to 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git'29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git config lfs.https://github.com/xxx.git/info/lfs.locksverify falsefalse29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 259 bytes | 259.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote:      https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System/pull/new/master
remote:
To https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git* [new branch]      master -> master29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git add .
git commit -m "提交test大文件文件"
git push
[master 571c3f0] 提交test大文件文件1 file changed, 3 insertions(+)create mode 100644 predict-system.zip
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, usegit push --set-upstream origin masterTo have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git add .29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git commit -m "提交test大文件文件"
On branch master
nothing to commit, working tree clean29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push master
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ 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.
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.
error: failed to push some refs to 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git'29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ # 删除 .git/hooks/pre-push 文件即可
That looks like a server issue with deploy keys. For now, try removing .git/hooks/pre-push.
bash: That: command not found29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$ git push origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 423 bytes | 423.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.gitf84f8d9..571c3f0  master -> master29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
$

这篇关于git工具上传文件超过100MB解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/899923

相关文章

C#使用HttpClient进行Post请求出现超时问题的解决及优化

《C#使用HttpClient进行Post请求出现超时问题的解决及优化》最近我的控制台程序发现有时候总是出现请求超时等问题,通常好几分钟最多只有3-4个请求,在使用apipost发现并发10个5分钟也... 目录优化结论单例HttpClient连接池耗尽和并发并发异步最终优化后优化结论我直接上优化结论吧,

Window Server2016加入AD域的方法步骤

《WindowServer2016加入AD域的方法步骤》:本文主要介绍WindowServer2016加入AD域的方法步骤,包括配置DNS、检测ping通、更改计算机域、输入账号密码、重启服务... 目录一、 准备条件二、配置ServerB加入ServerA的AD域(test.ly)三、查看加入AD域后的变

Window Server2016 AD域的创建的方法步骤

《WindowServer2016AD域的创建的方法步骤》本文主要介绍了WindowServer2016AD域的创建的方法步骤,文中通过图文介绍的非常详细,对大家的学习或者工作具有一定的参考学习价... 目录一、准备条件二、在ServerA服务器中常见AD域管理器:三、创建AD域,域地址为“test.ly”

NFS实现多服务器文件的共享的方法步骤

《NFS实现多服务器文件的共享的方法步骤》NFS允许网络中的计算机之间共享资源,客户端可以透明地读写远端NFS服务器上的文件,本文就来介绍一下NFS实现多服务器文件的共享的方法步骤,感兴趣的可以了解一... 目录一、简介二、部署1、准备1、服务端和客户端:安装nfs-utils2、服务端:创建共享目录3、服

Java 字符数组转字符串的常用方法

《Java字符数组转字符串的常用方法》文章总结了在Java中将字符数组转换为字符串的几种常用方法,包括使用String构造函数、String.valueOf()方法、StringBuilder以及A... 目录1. 使用String构造函数1.1 基本转换方法1.2 注意事项2. 使用String.valu

基于Python开发电脑定时关机工具

《基于Python开发电脑定时关机工具》这篇文章主要为大家详细介绍了如何基于Python开发一个电脑定时关机工具,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1. 简介2. 运行效果3. 相关源码1. 简介这个程序就像一个“忠实的管家”,帮你按时关掉电脑,而且全程不需要你多做

Python中使用defaultdict和Counter的方法

《Python中使用defaultdict和Counter的方法》本文深入探讨了Python中的两个强大工具——defaultdict和Counter,并详细介绍了它们的工作原理、应用场景以及在实际编... 目录引言defaultdict的深入应用什么是defaultdictdefaultdict的工作原理

使用Python进行文件读写操作的基本方法

《使用Python进行文件读写操作的基本方法》今天的内容来介绍Python中进行文件读写操作的方法,这在学习Python时是必不可少的技术点,希望可以帮助到正在学习python的小伙伴,以下是Pyth... 目录一、文件读取:二、文件写入:三、文件追加:四、文件读写的二进制模式:五、使用 json 模块读写

解决systemctl reload nginx重启Nginx服务报错:Job for nginx.service invalid问题

《解决systemctlreloadnginx重启Nginx服务报错:Jobfornginx.serviceinvalid问题》文章描述了通过`systemctlstatusnginx.se... 目录systemctl reload nginx重启Nginx服务报错:Job for nginx.javas

Oracle数据库使用 listagg去重删除重复数据的方法汇总

《Oracle数据库使用listagg去重删除重复数据的方法汇总》文章介绍了在Oracle数据库中使用LISTAGG和XMLAGG函数进行字符串聚合并去重的方法,包括去重聚合、使用XML解析和CLO... 目录案例表第一种:使用wm_concat() + distinct去重聚合第二种:使用listagg,