我已经使用GitLab超过6个月了,从上周开始我就没有问题将文件推送给我。现在,当我推送一个以上的小文件时出现错误:
我已经删除了repos,完全重新启动,在服务器上卸载了git等等,试图解决这个问题,但它仍然不允许我按下更大/更多的文件:
当我按下1个文件时:
git push -u origin master
Username for 'https://gitlab.com': username
Password for 'https://username@gitlab.com':
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 385 bytes | 55.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://gitlab.com/pglover/HTSv2.git
e5454ca..8147977 master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
推送~10个文件(~10kb):
git push -u origin master
Username for 'https://gitlab.com': username
Password for 'https://username@gitlab.com':
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (12/12), 5.48 KiB | 224.00 KiB/s, done.
Total 12 (delta 1), reused 0 (delta 0)
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Bad Request
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
我已经搜索了为什么会发生这种情况并增加了缓冲区设置:
git config http.postBuffer 524288000
但这没有用。我也尝试更改.git / config
中的url从:
url = https://gitlab.com/username/repo.git
为:
url = git@gitlab.com:username/repo.git
但是发生的错误是:
ssh: connect to host gitlab.com port 22: Connection refused
fatal: Could not read from remote repository.
是否有人有关于在何处查看或可能导致此问题的提示?感谢