简体   繁体   English

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

[英]git error - failed to push some refs to '**.git'

I am facing a problem that I cannot push my commited changes to git.我面临无法将我提交的更改推送到 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'

I've tried some solutions from other stackoverflow questions, but following didn't work.我已经尝试了其他 stackoverflow 问题的一些解决方案,但以下没有奏效。

What I tried #1: git pull我试过的#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'

What I tried #2: git remote prune origin我试过的#2: 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'

That looks like a "500 Internal Server Error"看起来像“500 内部服务器错误”

A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.一般错误消息,在遇到意外情况且没有更具体的消息适用时给出。

You need to check on the remote hosting service you are using.您需要检查您正在使用的远程托管服务。

Or, if it is an on-premise Git repository hosting service, contact their administrators.或者,如果它是本地 Git 存储库托管服务,请联系其管理员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM