search

Home  >  Q&A  >  body text

git - Conflict occurs when hoxfix branch merges back to develop branch

As shown above, we work on two branches: master and develop, among which the master branch is used to release stable versions.
Then I suddenly found a bug in version 1.2 that needed to be fixed urgently.
So I created a new branch hotfix and modified the code on it.
has been modified. Of course, I hope to merge the hotfix branch back to both the master and the develop branch.
However, when merging into master Everything is normal, but when merging into the develop branch, a conflict is displayed. It seems that the develop branch is ahead of master, and hoxfix is pulled from version 1.2 of master.

Please tell me the correct way to use hotfix. .

迷茫迷茫2825 days ago716

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-02 09:35:12

    Yes, it’s okay if conflicts arise, just resolve them.

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:35:12

    The correct way to use it is to resolve conflicts when there are conflicts

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:35:12

    If master is normal, don’t worry about it. Just resolve the conflict on dev

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:35:12

    develop and hotfix modified a file at the same time

    reply
    0
  • Cancelreply