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

相关文章

Android 12解决push framework.jar无法开机的方法小结

《Android12解决pushframework.jar无法开机的方法小结》:本文主要介绍在Android12中解决pushframework.jar无法开机的方法,包括编译指令、框架层和s... 目录1. android 编译指令1.1 framework层的编译指令1.2 替换framework.ja

在.NET平台使用C#为PDF添加各种类型的表单域的方法

《在.NET平台使用C#为PDF添加各种类型的表单域的方法》在日常办公系统开发中,涉及PDF处理相关的开发时,生成可填写的PDF表单是一种常见需求,与静态PDF不同,带有**表单域的文档支持用户直接在... 目录引言使用 PdfTextBoxField 添加文本输入域使用 PdfComboBoxField

SQLyog中DELIMITER执行存储过程时出现前置缩进问题的解决方法

《SQLyog中DELIMITER执行存储过程时出现前置缩进问题的解决方法》在SQLyog中执行存储过程时出现的前置缩进问题,实际上反映了SQLyog对SQL语句解析的一个特殊行为,本文给大家介绍了详... 目录问题根源正确写法示例永久解决方案为什么命令行不受影响?最佳实践建议问题根源SQLyog的语句分

Git可视化管理工具(SourceTree)使用操作大全经典

《Git可视化管理工具(SourceTree)使用操作大全经典》本文详细介绍了SourceTree作为Git可视化管理工具的常用操作,包括连接远程仓库、添加SSH密钥、克隆仓库、设置默认项目目录、代码... 目录前言:连接Gitee or github,获取代码:在SourceTree中添加SSH密钥:Cl

Java NoClassDefFoundError运行时错误分析解决

《JavaNoClassDefFoundError运行时错误分析解决》在Java开发中,NoClassDefFoundError是一种常见的运行时错误,它通常表明Java虚拟机在尝试加载一个类时未能... 目录前言一、问题分析二、报错原因三、解决思路检查类路径配置检查依赖库检查类文件调试类加载器问题四、常见

解决IDEA报错:编码GBK的不可映射字符问题

《解决IDEA报错:编码GBK的不可映射字符问题》:本文主要介绍解决IDEA报错:编码GBK的不可映射字符问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录IDEA报错:编码GBK的不可映射字符终端软件问题描述原因分析解决方案方法1:将命令改为方法2:右下jav

Python实现微信自动锁定工具

《Python实现微信自动锁定工具》在数字化办公时代,微信已成为职场沟通的重要工具,但临时离开时忘记锁屏可能导致敏感信息泄露,下面我们就来看看如何使用Python打造一个微信自动锁定工具吧... 目录引言:当微信隐私遇到自动化守护效果展示核心功能全景图技术亮点深度解析1. 无操作检测引擎2. 微信路径智能获

Java 中的 @SneakyThrows 注解使用方法(简化异常处理的利与弊)

《Java中的@SneakyThrows注解使用方法(简化异常处理的利与弊)》为了简化异常处理,Lombok提供了一个强大的注解@SneakyThrows,本文将详细介绍@SneakyThro... 目录1. @SneakyThrows 简介 1.1 什么是 Lombok?2. @SneakyThrows

MyBatis模糊查询报错:ParserException: not supported.pos 问题解决

《MyBatis模糊查询报错:ParserException:notsupported.pos问题解决》本文主要介绍了MyBatis模糊查询报错:ParserException:notsuppo... 目录问题描述问题根源错误SQL解析逻辑深层原因分析三种解决方案方案一:使用CONCAT函数(推荐)方案二:

判断PyTorch是GPU版还是CPU版的方法小结

《判断PyTorch是GPU版还是CPU版的方法小结》PyTorch作为当前最流行的深度学习框架之一,支持在CPU和GPU(NVIDIACUDA)上运行,所以对于深度学习开发者来说,正确识别PyTor... 目录前言为什么需要区分GPU和CPU版本?性能差异硬件要求如何检查PyTorch版本?方法1:使用命