git错误-无法将某些引用推送到“**.git”

wgeznvg7  于 2022-11-27  发布在  Git
关注(0)|答案(1)|浏览(194)

我面临着一个问题,我不能把我提交的修改推到git。

> git push
Enumerating objects: 82, done.
Counting objects: 100% (82/82), done.
Delta compression using up to 16 threads
Compressing objects: 100% (57/57), done.
Writing objects: 100% (57/57), 7.52 KiB | 770.00 KiB/s, done.
Total 57 (delta 43), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (43/43), completed with 22 local objects.
remote: Internal Server Error
To https://***.git
 ! [remote rejected] master -> master (Internal Server Error)
error: failed to push some refs to 'https://***.git'

我已经尝试了一些解决方案,从其他stackoverflow问题,但以下没有工作.
我尝试的方法#1:git pull

> git pull
Current branch master is up to date.

> git pull origin master --allow-unrelated-histories
From https://***
 * branch            master     -> FETCH_HEAD
Current branch master is up to date.

> git push
Enumerating objects: 82, done.
Counting objects: 100% (82/82), done.
Delta compression using up to 16 threads
Compressing objects: 100% (57/57), done.
Writing objects: 100% (57/57), 7.52 KiB | 770.00 KiB/s, done.
Total 57 (delta 43), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (43/43), completed with 22 local objects.
remote: Internal Server Error
To https://***.git
 ! [remote rejected] master -> master (Internal Server Error)
error: failed to push some refs to 'https://***.git'

我尝试的第二种方法:git remote prune origin

> git remote prune origin

> git gc --auto

> git push
Enumerating objects: 82, done.
Counting objects: 100% (82/82), done.
Delta compression using up to 16 threads
Compressing objects: 100% (57/57), done.
Writing objects: 100% (57/57), 7.52 KiB | 770.00 KiB/s, done.
Total 57 (delta 43), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (43/43), completed with 22 local objects.
remote: Internal Server Error
To https://***.git
 ! [remote rejected] master -> master (Internal Server Error)
error: failed to push some refs to 'https://***.git'
krcsximq

krcsximq1#

这看起来像“500内部服务器错误”
一般错误消息,在遇到意外情况且没有更具体的消息适用时给出。
您需要检查您正在使用的远程托管服务。
或者,如果是内部部署的Git存储库托管服务,请联系其管理员。

相关问题