如何调试:Git pull在git pull期间挂起(总是在54%)

栏目: 编程工具 · 发布时间: 5年前

内容简介:翻译自:https://stackoverflow.com/questions/13176891/howto-debug-git-pull-hangs-during-git-pull-always-at-54
我在我的存储库中添加了两个大文件(每个150MB),现在git pull总是挂起54%.我使用ping检查网络,尝试使用另一个,我做了一个git fsck等没有任何帮助.

>我该如何调试?

>有没有办法一次只获取一个大文件?问题是我的本地git不知道最后一次提交= – (

But even after removing the two files from the remote repository I cannot pull.

你用什么方法“删除这两个文件”?

您需要从存储库历史记录中的所有提交中删除它们.

要执行此操作,请参阅例如: How to remove/delete a large file from commit history in Git repository?

要检查你的git pull是否真的停滞或只是非常慢:检查你的计算机和托管中央存储库的服务器之间的网络流量.

如果你有另一种方法来获取2个大文件(例如:从usb棒中将它们复制到本地存储库中……)你可以从本地存储库对这些文件运行git add(不要运行git commit),然后git重置.展开他们.

这应该将这些文件添加到本地仓库中的已知对象列表中,git pull不需要再次下载它们.

翻译自:https://stackoverflow.com/questions/13176891/howto-debug-git-pull-hangs-during-git-pull-always-at-54


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

We Are the Nerds

We Are the Nerds

Christine Lagorio-Chafkin / Hachette Books / 2018-10-2 / USD 18.30

Reddit hails itself as "the front page of the Internet." It's the third most-visited website in the United States--and yet, millions of Americans have no idea what it is. We Are the Nerds is an eng......一起来看看 《We Are the Nerds》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具