My friend and I are working on the same project and we're using Github. I'm considering creating branches for each of us and then merge to the master.
I just did an experiment, I created 2 branches at the same time, and then modify the same file in the two branches. Then I tried to merge to the master. The first merge is successful, but the second not. It says there is a conflict.
Here is the problem. Suppose My friend and I clone the repo at the same time, and we work on the project, we might make changes both in the same file and in the different files. How could then finally merge our branches?
Or does it have another solution?