简体   繁体   English

解决了重新设置分支机构的所有冲突后,我执行了“ git rebase --continue”,并且得到了“是否没有进行重新设置?”。 接下来我该怎么办?

[英]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.

相关问题 GIT 我该怎么办 - 所有冲突都已修复:运行“git rebase --continue” - GIT What should I do - all conflicts fixed: run "git rebase --continue" git:我的提示中出现了“am/rebase”,该怎么办? - git: I got “am/rebase” in my prompt, what to do? 我 git 变基了吗? - Did I git rebase? git rebase-如何接受所​​有合并冲突的远程分支? - Git rebase - how do I accept remote branch for all merge conflicts? 在我做了git rebase后,它应该只有一个提交 - after I did git rebase it should so only one commit 解决重设冲突后如何在不使用强制推送的情况下将分支推送到远程站点? - How can I push a branch to remote after resolving rebase conflicts without using force push? 使用git rebase,我是否应该假装在解决冲突时未发生某些事情? - With git rebase, should I pretend that certain things didn't happen when resolving conflicts? 如何在不解决其他提交冲突的情况下在 git 中变基,或者压缩我的所有提交,同时不影响其他人的提交? - How can I rebase in git without resolving other commit conflicts, or squash all of my commits while leaving others' commits untouched? 如果我将 git branch 重新设置为自身会怎样? - What if I rebase git branch on itself? 如何使用'git rebase -i'来重新分支分支中的所有更改? - How do I use 'git rebase -i' to rebase all changes in a branch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM