search

Home  >  Q&A  >  body text

git merge --no-ff After resolving conflicts, will the history of the branch be gone?

When Gitlab sends a merge request, there are conflicts that need to be resolved manually, and then I follow the steps as prompted

git fetch origin
git checkout -b develop origin/develop

git checkout master-clone
git merge --no-ff develop

git push origin master-clone

In this case, there will be no commit history of the develop branch in the master-clone branch?

漂亮男人漂亮男人2836 days ago726

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:50:08

    对。

          A---B---C develop
         /
        D------------ master

    git merge --no-ff develop

          A---B---C develop
         /         \
        D-----------E---F master

    git merge develop

          A---B---C develop
         /         
        D-A---B--C--E---F master

    reply
    0
  • Cancelreply