git推送失败
提示信息:
git.exe push --progress "http://xxxxxxxxxxxx.git" master:master
Enumerating objects: 90, done.
Counting objects: 100% (90/90), done.
Delta compression using up to 32 threads
Compressing objects: 100% (52/52), done.
Writing objects: 100% (65/65), 14.36 KiB | 1.20 MiB/s, done.
Total 65 (delta 13), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
git 未能顺利结束 (退出码 1) (2734 ms @ 2025/3/18 13:50:51)
1.检查git服务器是否正常
2.检查config配置是否正常
git config --get user.email
git config --get user.name
3.如果执行完上面这些发现都没有问题的话,可能是因为克隆代码的时候是浅克隆
执行:git fetch --unshallow
再次推送后成功