Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当Github上的分支表示所有内容都是最新的时,如何在Git上重新设置基础_Git_Github - Fatal编程技术网

当Github上的分支表示所有内容都是最新的时,如何在Git上重新设置基础

当Github上的分支表示所有内容都是最新的时,如何在Git上重新设置基础,git,github,Git,Github,我有一个公关部门,我从master那里重新定了基调。 当我执行以下操作时: git checkout master git pull git checkout featurebranch git pull git rebase master 我得到: Everything up-to-date 但在gitHub上,我得到: Rebasing the commits of this branch on top of the base branch cannot be performed au

我有一个公关部门,我从master那里重新定了基调。 当我执行以下操作时:

git checkout master
git pull

git checkout featurebranch
git pull
git rebase master
我得到:

Everything up-to-date
但在gitHub上,我得到:

Rebasing the commits of this branch on top of the base branch cannot be performed automatically due to conflicts encountered while reapplying the individual commits from the head branch.
我想我可能做了一个git重基——跳过一些提交。如何解决此问题?

请尝试:

git checkout featurebranch
git pull
git rebase origin/master
git push -f

你说的“在git上我得到了”—在github上是什么意思?@zrrbite废话对不起,我是说github,你以为会发生什么?一切都是最新的还是冲突状态?您的GitBash或github正确吗?(例如,master是否包含不在featurebranch上的提交)通常,当我执行rebase时,gitHub不会引发错误。我所在的州github要求我重新设置基础,但当我尝试执行时,它会说一切都是最新的,所以我;我不知道如果你运行像gitk这样的东西该怎么办——都是本地的,它告诉你什么?它必须告诉你,你要么和主人在同一条线上,要么就在前面。现在比较一下github上的两个分支会告诉你什么?当我这样做时,一切都是最新的