Fix fatal: Couldn't find remote ref refs/heads/xxx [core] fatal: The remote end hung up unexpectedly
来源:互联网 发布:剑三动漫捏脸数据 编辑:程序博客网 时间:2024/06/05 04:14
造成原因
- 本地 git 分支出现异常
解决方案
切换到仓库根目录
$
vim .git/config
(备注:红色git小写)找到其中的一条内容
[remote "origin"]
修改其中的fetch为:fetch = +refs/heads/*:refs/remotes/origin/*
再次尝试 $
git pull
拉取最新的代码之后,成功!
参考
- https://stackoverflow.com/questions/6930147/git-pull-displays-fatal-couldnt-find-remote-ref-refs-heads-xxxx-and-hangs-up
阅读全文
0 0
- Fix fatal: Couldn't find remote ref refs/heads/xxx [core] fatal: The remote end hung up unexpectedly
- fatal: Couldn't find remote ref refs/heads/cm-13.0
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: the remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly
- fatal: The remote end hung up unexpectedly error: failed to push some refs to ''
- git push错误;fatal: The remote end hung up unexpectedly
- git push错误;fatal: The remote end hung up unexpectedly
- git fatal: the remote end hung up unexpectedly
- Git fatal: The remote end hung up unexpectedly
- Git: fatal: The remote end hung up unexpectedly 解决方法
- Git异常fatal:The remote end hung up unexpectedly
- iOS - 解决fatal: The remote end hung up unexpectedly
- storm分布式数据处理构架–环境配置ubuntu
- 正则表达式-判别日期
- mybatis 不同Mapper文件引用resultMap
- 单点登录
- 算法优化:rgb向yuv的转化最优算法,快得让你吃惊(转)
- Fix fatal: Couldn't find remote ref refs/heads/xxx [core] fatal: The remote end hung up unexpectedly
- linux的json神器之jq
- css 提示效果
- python3基础-模块
- 工业相机软件开发
- 互联网时代的社会语言学:基于SNS的文本数据挖掘
- 【存储入门必读】存储基础知识
- Xmodem通信协议实例
- 路由分类--动态路由和静态路由、缺省路由