我在我的 Mac OS X 10.8 上安装了 Gitblit,但是一直无法推送!
在 Gitblit 网页界面中,我创建了一个名为 empty 的空仓库,并通过以下命令将其克隆到本地存储中:
git clone https://localhost:8443/git/test/empty.git
我添加了一个文件并提交了更改,然后添加了一个远程仓库。
git remote add gitblit https://localhost:8443/git/test/empty.git
然后我尝试使用以下命令进行推送:
git push -v gitblit master
错误信息如下:
Pushing to https://localhost:8443/git/test/empty.git
Counting objects: 3, done.
Writing objects: 100% (3/3), 215 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
POST git-receive-pack (351 bytes)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
我尝试了SSL和缓冲设置,但没有帮助。
git config http.postBuffer 524288000
git config http.sslVerify false
git config --global http.postBuffer 524288000
config --global --bool --add http.sslVerify false
我的Gitblit绑定设置全部设置为空,以接受所有接口的绑定:
server.httpBindInterface =
server.httpsBindInterface =
server.ajpBindInterface =
非常感谢您的帮助!