程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了推送到 Git 后没有看到任何变化。 Git 内部服务器错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

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

开发过程中遇到推送到 Git 后没有看到任何变化。 Git 内部服务器错误的问题如何解决?下面主要结合日常开发的经验,给出你关于推送到 Git 后没有看到任何变化。 Git 内部服务器错误的解决方法建议,希望对你解决推送到 Git 后没有看到任何变化。 Git 内部服务器错误有所启发或帮助;

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

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

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

git reset --hard origin/master

确保它是最新的:

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

nothing to commit,working tree clean

然后在文件中做一个小的修改。

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")

我和往常一样:

git add test.py
git commit -m "updating test.py"
git push -u origin master

给出:

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

但是,在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

有人可以帮忙吗?

解决方法

问题持续了 2 天,然后没有改变任何东西,'git push' 就通过了。

大佬总结

以上是大佬教程为你收集整理的推送到 Git 后没有看到任何变化。 Git 内部服务器错误全部内容,希望文章能够帮你解决推送到 Git 后没有看到任何变化。 Git 内部服务器错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: