[英]After resolving all conflicts in rebasing my branch, I did “git rebase --continue” and I got “No rebase in progress?” . What should I do next?
I am trying to rebase my branch with my develop branch. 我试图用我的开发分支重新建立我的分支。 In the process of resolving conflicts and
git rebase --continue
I ended up to a point where I am done resolving everything and I did git rebase --continue
again 在解决冲突和
git rebase --continue
的过程中- git rebase --continue
我最终解决了所有问题, git rebase --continue
再次进行git rebase --continue
继续
pragyagoel$ git rebase --continue
No rebase in progress?
pragyagoel$
On git status it gives me following: 在git status上,它给我以下信息:
pragyagoel$ git status
On branch Pragya_Develop_2
Your branch and 'origin/Pragya_Develop_2' have diverged,
and have 64 and 9 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
pragyagoel$
Not sure what I am supposed to do next as its as I have no place to response to "No rebase in progress?". 不知道下一步该怎么做,因为我无处回应“正在进行中的没有基准?”。 It directly goes to new command line.
它直接转到新命令行。
It looks to me like your rebase completed successfully. 在我看来,您的重新定位已成功完成。
If you run 如果你跑
git log --graph --decorate Pragya_Develop_2 origin/Pragya_Develop_2
it should show you your rebased commits in branch Pragya_Develop_2
, which have diverged from origin/Pragya_Develop_2
precisely because you've done the rebase. 它应该向您显示分支
Pragya_Develop_2
您重新设置的提交,这些提交与origin/Pragya_Develop_2
有所不同,正是因为您已经完成了重新设置。
If you are happy with the result and want to update the branch on origin
with the rebased one, you can now do git push -f
. 如果您对结果感到满意,并希望使用已重设的分支更新
origin
分支,则可以执行git push -f
。
Caveat: there are a lot of good reasons to avoid pushing the results of a rebase, but to use a merge instead. 警告:有很多充分的理由要避免推送重新设置结果,而要使用合并。 I recommend reading up on that (google "git rebase vs merge" to find dozens of pages on the topic), but here I am answering your question as asked, assuming that rebase really is what you want to do.
我建议您仔细阅读(google“ git rebase vs merge”以找到有关该主题的数十页内容),但是在这里,我回答了您的问题,并假设您确实想进行rebase。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.