推送到 Git 后没有看到任何变化。Git 内部服务器错误

Fus*_*sen 6 git github

版主注意:当 GitHub 出现中断或服务降级时,会发生此错误。我们将其保留为规范帖子,供其他人查看并作为重复项关闭,但有关服务中断的问题属于题外话

有类似的问题,但我找不到任何可以解决问题的答案。

git status

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

我将本地更改撤回到上次提交的原始状态:

git reset --hard origin/master
Run Code Online (Sandbox Code Playgroud)

确保它是最新的:

git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

然后对文件进行小的修改。

git status

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   test.py

no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)

我一如既往地这样做:

git add test.py
git commit -m "updating test.py"
git push -u origin master
Run Code Online (Sandbox Code Playgroud)

这使:

Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 281 bytes | 281.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: Internal Server Error
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)

但是,在 github 页面上看不到这些更改。现在,git status给出:

On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

小智 19

(internal server error)消息通常代表 Github 中断。GitHub 的状态可以在https://www.githubstatus.com/观察


Fus*_*sen 8

该问题持续了 2 天,然后没有进行任何更改,“git Push”就完成了。