关于Git上传的报错


在每次上传图片或者文件时报错,报错信息如下:

1
2
3
4
5
6
7
8
9
10
Enumerating objects: 79, done.
Counting objects: 100% (69/69), done.
Delta compression using up to 8 threads
Compressing objects: 100% (49/49), done.
Writing objects: 100% (50/50), 427.23 KiB | 23.73 MiB/s, done.
Total 50 (delta 19), reused 0 (delta 0)
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

解决办法

1
git config --global http.version HTTP/1.1

文章作者: Flonger
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Flonger !
 上一篇
Flutter接入Firebase推送 Flutter接入Firebase推送
123其实在网上也能搜到一些教程,但是不是讲的不清楚,就是版本太老,此次使用的Flutter版本是2.0.0,理论上Flutter版本大于1.12皆适用。本文大部分按照官方Firebase接入方式,主要做了cloud message,其他插
下一篇 
Vue项目commit时的CLi报错 Vue项目commit时的CLi报错
报错原因项目中使用了husky,并且配置了”precommit”: “npm run lint”。因此会在你git commit的时候执行npm run lint 也就是eslint –ext .js src test。 GIT_DIR/h
  目录