执行git pull命令报告"fatal: early EOF fatal: index-pack failed error: Could not fetch origin fatal: read error: Connection timed out"如何处理?

答: 改变仓库的地址(<source code dir>/.git/config中的[remote "origin"]),如:

.git/config中的[remote "origin"]如下:

[remote "origin"]

url= git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git

fetch = +refs/heads/*:refs/remotes/origin/*

修改为:

[remote "origin"]

url= https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git

fetch = +refs/heads/*:refs/remotes/origin/*

原文地址:https://www.cnblogs.com/dakewei/p/12582324.html

时间: 2024-08-28 16:23:56

执行git pull命令报告"fatal: early EOF fatal: index-pack failed error: Could not fetch origin fatal: read error: Connection timed out"如何处理?的相关文章

解决git pull 命令失效,不能从远程服务器上拉取代码问题

用时候在用Git pull命令的时候不管用,拉取不下来远程分支上的代码,是因为本地分支和远程分支没有建立关联. 处理这种问题很简单就按照提示执行命令即可:git branch --set-upstream-to=origin/fixbug-2.9.8 fixbug-2.9.8 如果想保证这种情况不出现就在建立新分支推送到远程分支上的时候加上-u参数即可 git push -u origin feature- 解决git pull 命令失效,不能从远程服务器上拉取代码问题

PHP通过exec执行git pull

目标 项目没有使用Jenkins部署,使用的是Gitlab+ECS,要实现代码的自动部署 想法 使用Gitlab的钩子,当某个分支的代码提交之后,访问一个URL,实现代码的自动部署.这里使用PHP的exec方法,执行“git pull”操作 Tips:这种方法不是百分百靠谱,万一代码冲突就...... 实现 目的:访问 http://xxx.com/index.php?project=hello,程序会自动在hello这个文件下,运行“git pull”命令 1.前提条件:linux上安装好gi

fatal: early EOF

git config --global core.compression 0 git clone --depth 1 <repo_URI> git fetch --unshallow or git fetch --depth=2147483647 git pull --all  

git pull 命令

作用:取回远程主机某个分支的更新,再与本地的指定分支合并 格式:git pull  <远程主机名> <远程分支名>:<本地分支名> 1. 如果与当前分支合并,则可省略本地分支名 git pull <远程主机名> <远程分支名> 相当于:git fetch <远程主机名> <远程分支名> git merge <远程主机名>/<远程分支名> 2. 如果当前分支与远程分支存在追踪关系 git pull &

Windows环境git执行git add命令warning: ....

Git 在编辑文件添加时出现如图提示: 原因:CRLF -- Carriage-Return Line-Feed 回车换行 解决方法: Git提供了一个换行符检查功能(core.safecrlf),可以在提交时检查文件是否混用了不同风格的换行符.这个功能的选项如下: false - 不做任何检查 warn - 在提交时检查并警告 true - 在提交时检查,如果发现混用则拒绝提交 建议使用最严格的 true 选项. (1)如果你是Windows程序员,且正在开发仅运行在Windows上的项目,可

git pull命令执行时,命令框不可操作的问题

解决方案,按键盘i进入insert模式 修改上面的黄色信息,可以不修改 按键盘Esc 输入":wq",按回车键即可

linux服务器git pull/push时避免频繁输入账号密码

1.先cd到根目录,执行git config --global credential.helper store命令 [[email protected] ~]# git config --global credential.helper store 2.执行之后会在.gitconfig文件中多加红色字体项 [user] name = wang email = [email protected] [credential] helper = store 3.之后cd到项目目录,执行git pull命

使用git pull时,项目没有更新?

进入项目目录后,执行 git pull 命令,没有将项目更新,并提示下图: 提示:there is no tracking information for the current branch. 意思是说本地分支master和远程分支master,并未关联.之前文章中曾经说过,在本地仓库和远程仓库连接后,执行一个: git push -u origin master 1 git push -u origin master 把本地库的内容推送到远程,用git push命令,实际上是把当前分支mas

linux服务器git pull/push时提示输入账号密码之免除设置

1.先cd到根目录,执行git config --global credential.helper store命令 [[email protected] ~]# git config --global credential.helper store 2.执行之后会在.gitconfig文件中多加红色字体项 [user] name = 天明 email = [email protected] [credential] helper = store 3.之后cd到项目目录,执行git pull命令,