无更新
This commit is contained in:
commit
f52e805a30
21
.obsidian/workspace
vendored
21
.obsidian/workspace
vendored
@ -9,7 +9,11 @@
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
<<<<<<< HEAD
|
||||
"file": "git/gitlab/gitlab---create blank project and push.md",
|
||||
=======
|
||||
"file": "GIt 错误记录.md",
|
||||
>>>>>>> test2
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
@ -69,7 +73,11 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
<<<<<<< HEAD
|
||||
"file": "git/gitlab/gitlab---create blank project and push.md",
|
||||
=======
|
||||
"file": "GIt 错误记录.md",
|
||||
>>>>>>> test2
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@ -89,6 +97,7 @@
|
||||
},
|
||||
"active": "7eb2511e30cd8b3a",
|
||||
"lastOpenFiles": [
|
||||
<<<<<<< HEAD
|
||||
"git/gitlab/gitlab---create blank project and push.md",
|
||||
"front_end/vue/vue引入百度地图.md",
|
||||
"front_end/vue/element upload手动文件上传,多文件上传.md",
|
||||
@ -99,5 +108,17 @@
|
||||
"docker/无损升级Docker容器的镜像版本.md",
|
||||
"docker/重置portainer密码.md",
|
||||
"docker/docker-compose 安装.md"
|
||||
=======
|
||||
"GIt 错误记录.md",
|
||||
"docker/docker-compose 安装.md",
|
||||
"docker/Ubuntu20.04 安装Docker.md",
|
||||
"docker/无损升级Docker容器的镜像版本.md",
|
||||
"docker/重置portainer密码.md",
|
||||
"apps/vscode/VsCode-鼠标滑轮控制字体大小.md",
|
||||
"vm/virtualbox/VirtualBox 搭建Ubuntu20.04.md",
|
||||
"vm/virtualbox/assets/1650301557(1).png",
|
||||
"vm/virtualbox/assets/1650303777(1).png",
|
||||
"vm/virtualbox/assets/1650304260(1).png"
|
||||
>>>>>>> test2
|
||||
]
|
||||
}
|
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