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

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

内容简介:翻译自: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


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

查看所有标签

猜你喜欢:

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

Hacking

Hacking

Jon Erickson / No Starch Press / 2008-2-4 / USD 49.95

While other books merely show how to run existing exploits, Hacking: The Art of Exploitation broke ground as the first book to explain how hacking and software exploits work and how readers could deve......一起来看看 《Hacking》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器