Git 提交未显示在 Git 中心网页上

Git commit not showing on Github webpage

我是使用 Github 的新手,所以我有一个问题。 我正在使用 Windows Github 客户端。我分叉了一个回购并添加了一些更改。 Github 网页上未显示这些更改。

例如,here 是我的提交。

Here 是回购。

但是在 GitHub 我看到没有新的提交,最后一个来自分叉的回购:

但是如果我从以下位置下载 ZIP:https://github.com/amacar/NiceHashBot 然后我可以看到我之前提交的更改。 我有点困惑,不知道哪里出了问题。

看来你的提交不是主分支的一部分,只是闲逛。尝试通过哈希直接检出你的提交,为它创建一个新分支,然后将它合并到 master:

git checkout 7e0c8c94de9 # changes HEAD to directly this commit
git checkout -b my-change # creates a new branch for the HEAD
git checkout master
git merge my-change # merges the new branch into master
git push # pushes master to github

看起来它正在运行。我做了另一个分支,在这样做之后我的提交就出现在 Github 网页上。一定和@onlynone 说的类似。