Bitbucket git pull and git push are giving 'Already up to date' and 'Everything up to date' when I can see online 2 more commits on top
Bitbucket git pull和git push正在提供'已经是最新'和'一切都是最新的'当我在网上看到2个更多提交在顶部
When using gitk I see that remote master is 2 commits below of the real remote master (the one I can see on bitbucket webview). I do a git pull or a git fetch plus the merge and I always get 'Already up to date'.
当使用gitk时,我看到远程主机是真正的远程主机下面的2个提交(我可以在bitbucket webview上看到)。我做git pull或git fetch加上合并,我总是得到'已经是最新的'。
If I checkout the latest commit I can see on the webview manually and put it in a different branch I can see on Gitk that I'm now on top of master (local and remote) by 2 commits, so I tried to push these 2 commits again and it says 'Everything up to date'
如果我检查出最新的提交,我可以在webview上手动看到并将它放在一个不同的分支中,我可以在Gitk上看到我现在在master(本地和远程)上通过2次提交,所以我试图推送这些2再次承诺它说“一切都是最新的”
Not really sure what else I can do. Already cloned the repo from scratch again and same thing. Webview all the commits, right after git clone if I do a git status or use gitk the 2 top commits are not there.
不确定我还能做些什么。已经从头开始克隆了回购和同样的事情。 Webview所有提交,在git clone之后,如果我执行git状态或使用gitk,那么2个*提交都不存在。
The only think I did different compared to what I was doing before is that those 2 commits have tags. May that be the issue?
与我之前所做的相比,我唯一的想法就是那些2次提交都有标签。那可能是问题吗?
Thanks in advance for the help.
在此先感谢您的帮助。
1 个解决方案
#1
Apparently those last 2 commits were somewhere other than master in remote. I was not using the right web view so I was seeing all commits and not the master branch ones.
显然,最后两次提交是远程主人以外的某个地方。我没有使用正确的Web视图,所以我看到所有提交而不是主分支。
They looked like they were in some detached head state into remote if that's even possible.
如果可能的话,他们看起来像处于偏远的头状态。
What I did was to pull those 2 commits to a local branch and pushed that branch to remote. Then I created a pull request and merged it with master and now master is up to date with everything.
我所做的是将这两个提交拉到本地分支并将该分支推送到远程。然后我创建了一个拉取请求并将其与master合并,现在master与所有内容都是最新的。
#1
Apparently those last 2 commits were somewhere other than master in remote. I was not using the right web view so I was seeing all commits and not the master branch ones.
显然,最后两次提交是远程主人以外的某个地方。我没有使用正确的Web视图,所以我看到所有提交而不是主分支。
They looked like they were in some detached head state into remote if that's even possible.
如果可能的话,他们看起来像处于偏远的头状态。
What I did was to pull those 2 commits to a local branch and pushed that branch to remote. Then I created a pull request and merged it with master and now master is up to date with everything.
我所做的是将这两个提交拉到本地分支并将该分支推送到远程。然后我创建了一个拉取请求并将其与master合并,现在master与所有内容都是最新的。