X
X
xotta6bl42014-03-17 21:36:36
git
xotta6bl4, 2014-03-17 21:36:36

GIT - how to merge two branches?

Actually, there is a main develop branch and two branches for features.
In both branches, one file was changed (one method was added in one branch, another - in the other).
How to merge feature 2 in develop and resolve the conflict?
2f716fc2271742058253c73c07f0cad9.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Shikanov, 2014-03-17
@xotta6bl4

We just do this:

git checkout develop
git merge feature2

after that, if there is a conflict, then you need to manually resolve it and make a commit. This is standard practice in git.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question