doc 更新git错误记录
This commit is contained in:
parent
ac02842f69
commit
2f495a607e
8
.obsidian/workspace
vendored
8
.obsidian/workspace
vendored
@ -9,7 +9,7 @@
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "docker/docker-compose 安装.md",
|
||||
"file": "GIt 错误记录.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
@ -69,7 +69,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "docker/docker-compose 安装.md",
|
||||
"file": "GIt 错误记录.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@ -89,6 +89,7 @@
|
||||
},
|
||||
"active": "7eb2511e30cd8b3a",
|
||||
"lastOpenFiles": [
|
||||
"GIt 错误记录.md",
|
||||
"docker/docker-compose 安装.md",
|
||||
"docker/Ubuntu20.04 安装Docker.md",
|
||||
"docker/无损升级Docker容器的镜像版本.md",
|
||||
@ -97,7 +98,6 @@
|
||||
"vm/virtualbox/VirtualBox 搭建Ubuntu20.04.md",
|
||||
"vm/virtualbox/assets/1650301557(1).png",
|
||||
"vm/virtualbox/assets/1650303777(1).png",
|
||||
"vm/virtualbox/assets/1650304260(1).png",
|
||||
"vm/virtualbox/assets/Pasted image 20220419004014.png"
|
||||
"vm/virtualbox/assets/1650304260(1).png"
|
||||
]
|
||||
}
|
45
GIt 错误记录.md
Normal file
45
GIt 错误记录.md
Normal file
@ -0,0 +1,45 @@
|
||||
## 1.The remote end hung up unexpectedly
|
||||
#### push远程仓库错误 411
|
||||
```ruby
|
||||
RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
|
||||
fatal: The remote end hung up unexpectedly
|
||||
```
|
||||
|
||||
#### 原因
|
||||
提交的文件太大(默认是`1M`),导致`push`失败
|
||||
|
||||
#### 解决办法
|
||||
把提交文件大小的上限设置大点就可以了
|
||||
|
||||
```bash
|
||||
git config http.postBuffer 500M
|
||||
//或全局设置
|
||||
git config --global http.postBuffer 500M
|
||||
```
|
||||
|
||||
#### push远程仓库错误 413
|
||||
```ruby
|
||||
Enumerating objects: 83, done.
|
||||
Counting objects: 100% (83/83), done.
|
||||
Delta compression using up to 16 threads
|
||||
Compressing objects: 100% (72/72), done.
|
||||
Writing objects: 100% (77/77), 3.03 MiB | 15.59 MiB/s, done.
|
||||
Total 77 (delta 5), reused 0 (delta 0), pack-reused 0
|
||||
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
|
||||
send-pack: unexpected disconnect while reading sideband packet
|
||||
fatal: the remote end hung up unexpectedly
|
||||
Everything up-to-date
|
||||
```
|
||||
|
||||
#### 原因
|
||||
Web服务器阻止了大型上传文件
|
||||
|
||||
#### 解决方案(nginx)
|
||||
```bash
|
||||
#在nginx.conf中添加以下配置 50m 代表最大请求体不能超过50MB 可根据需求进行修改
|
||||
#nginx.conf 所在路径 /etc/nginx/
|
||||
client_max_body_size 50m;
|
||||
|
||||
#修改后保存文件 执行以下命令重新加载配置
|
||||
sudo service nginx reload
|
||||
```
|
Loading…
Reference in New Issue
Block a user