检查:git rebase是否完成?

时间:2016-09-21 11:34:16

标签: git github

这是(Alternative to git rebase

的后续行动

remoteRepo有两个分支,Master和testBranch。 testBranch提前100次提交,大约4000次提交。对testBranch进行了更改,但从未与Master合并。

所以我想将testBranch重新绑定到master并给他们一个pull请求。这样他们就可以审查并合并它。

我做了以下工作来实现上述目标:

  1. 在本地分叉并克隆了remoteRepo
  2. git checkout testBranch
  3. git fetch origin
  4. git rebase origin / Master
  5. 已解决的冲突
  6. 但是当我解决冲突时,     git rebase --continue 它说,No rebase in progress?。所以检查了git status

    On branch testBranch
    Your branch and 'origin/testBranch' have diverged,
    and have 4737 and 65 different commits each, respectively.
    (use "git pull" to merge the remote branch into yours)
    
    All conflicts fixed but you are still merging.
    (use "git commit" to conclude merge)
    

    然后我做了git commit。之后,再次检查状态

    On branch testBranch
    Your branch is ahead of 'origin/testBranch' by 4739 commits.
    (use "git push" to publish your local commits)
    

    最后做了git push并检查状态

    To https://github.com/vishnu/proj.git
    8d132f4..c192ff7  testBranch -> testBranch
    

    我手动转到分叉回购并检查。它表明Master在proj:master之后有大约30个提交。 testBranch在proj:testBranch之前是4739次。

    我不知道发生了什么。因为我的想法是将testBranch重新定义为master,我认为我的fork的主人最终会有更多的提交,我可以给他们拉取请求。

    或者其他什么都是正确的,我应该给出这个testBranch的拉取请求吗?

    这里发生了什么?

    任何指导方针对我都非常有帮助。

0 个答案:

没有答案