首页 > 其他分享 >fatal: sha1 file '<stdout>' write error: Broken pipe

fatal: sha1 file '<stdout>' write error: Broken pipe

时间:2023-10-09 12:14:06浏览次数:41  
标签:write sha1 pipe git master lfs commit id gitattributes

解决

使用Git LFS

  1. 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。
  2. 新开一个bash命令行输入git lfs install安装
  3. 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个.gitattributes文件。
  4. 这里很重要,一定要先将上一步生成的.gitattributes文件上传到仓库也就是要上传三部曲
git add .gitattributes
git commit -m "add .gitattributes"
git push origin master

 

 

注意:如果按照上述步骤依然报错,说明是在安装LFS之前已经提交大文件失败过了,这时需要回滚到失败之前的那次commit。

1 git log 查看日志,找到上次失败提交的commit_id,复制下来,然后输入

1 git reset --hard commit_id

#commit_id为复制的内容 注意,此操作会将提交失败的源文件也删除,所以注意备份。 

 

回退到上一次commit的状态

$ git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

解决方案:

git reset HEAD^ --soft

 

标签:write,sha1,pipe,git,master,lfs,commit,id,gitattributes
From: https://www.cnblogs.com/dream397/p/17751404.html

相关文章

  • 使用rewrite规则实现将所有到a域名的访问rewrite到b域名
     [root@centos8~]#vim/apps/nginx/conf/conf.d/mobile.confserver{listen80;server_namewww.a.com;location/{root"/data/nginx/html/mobile";indexindex.html;rewrite/http://www.b.comredi......
  • vulnhub - Fawks - writeup
    信息收集目标开放了21的ftp有匿名登录,除此之外还有常规的80,和连个ssh的端口。80端口的是一张图片,就是哈利波特的海报图。anonymous空密码登上去有一个文件下载下来是二进制的文件上kali里面运行看看。可以看到这个进程,接着看他开启什么服务没有,看到他在9898开放了,输入魔......
  • vulnhub - Aragog - writeup
    信息收集目标开放了80、22端口。root@Locklytemp/tmp»arp-scan-Ieth1-lInterface:eth1,type:EN10MB,MAC:00:0c:29:fa:3d:23,IPv4:192.168.56.106Startingarp-scan1.10.0with256hosts(https://githu......
  • ‘Proof of the pudding’: Global variables and PAGE_EXECUTE_WRITECOPY
    ‘Proofofthepudding’:GlobalvariablesandPAGE_EXECUTE_WRITECOPYUNCATEGORIZEDPRODUCTIONDEBUGGING, WINDBGLEAVEACOMMENT TodayIwasteachingadebuggingclasstoourcustomers.Asafoundationalelementwenormallyreviewthevirtual-to-phys......
  • 构造Vulkan图形管线:VkGraphicsPipeline
     创建Pipeline构造信息:它包括:基本构造信息VkStructureType构建Pipeline额外需要的结构:constvoid*pNext构建Pipeline时指定的Flags:VkPipelineCreateFlags多个ShaderStage信息:VkPipelineShaderStageCreateInfo*(数组)......
  • C error:deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    问题描述解决C++中[Warning]deprecatedconversionfromstringconstantto'char*'[-Wwrite-strings]char*string="aaabbbcc";//warning的原因是字符串常量存放在const内存区...原因主程序初始化字符串,是字符串常量,该字符串的内存分配在全局的const内存区。......
  • sklearn.pipeline的作用 函数参数解释及代码举例
    sklearn.pipeline是一个实用的工具,可以将多个数据预处理步骤和机器学习模型组合成一个整体,从而简化了机器学习的流程。Pipeline类可以将多个算法模型串联起来,比如将特征提取、归一化、分类组织在一起形成一个典型的机器学习问题工作流。主要带来两点好处:1.直接调用fit和predict方......
  • WriteUp-CTF-MISC
    图片隐写图片隐写五部曲:查看详情信息;探测隐藏文件;检索关键字;查看不同通道;修改宽高尺寸Banmabanma来源:攻防世界考点:扫码工具的使用工具:在线扫码工具(BarcodeReader.FreeOnlineWebApplication(inliteresearch.com))难度:⭐分析过程下载文件,得到zip压缩包;解压......
  • 2023年“羊城杯”网络安全大赛-高职高专组 WriteUP
    2023羊城杯WriteUpByXp0int2023羊城杯附件.zip2023年“羊城杯”网络安全大赛-高职高专组WriteUP——剑来.pdfWeb-1题目名称:D0n'tpl4yg4m3!!!题目内容:小明不小心沉迷⚪⚪的东西把源码和猫猫搞丢了,请帮他找回来。请访问/p0p.php【Flag完整格式一般为:flag{}或者DA......
  • Rewrite 观后感
    全是剧透\({}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}\)Part1.神户小鸟人不会因为独自一人而孤独,也不会因身处人群而不孤独。——爱比克泰德承袭了key的传统,小鸟线也完美......