gpt4 book ai didi

Git 提交未显示在 Github 网页上

转载 作者:太空狗 更新时间:2023-10-29 14:36:38 25 4
gpt4 key购买 nike

我在使用 Github 时是新手,所以我有一个问题。我正在使用 Windows Github 客户端。我 fork 了一个 repo 并添加了一些更改。这些更改不会显示在 Github 网页上。

例如,here是我的 promise 。

Here是 repo 。

但是在 GitHub 上我看到没有新的提交,最后一个是来自 forked repo: enter image description here

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

最佳答案

看起来你的提交不是主分支的一部分,只是闲逛。尝试通过哈希直接检查您的提交,为其创建一个新分支,然后将其 merge 到主分支:

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

关于Git 提交未显示在 Github 网页上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41005278/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com