-5

I have 2 files firtst-page.html and first-page.html new lines added to first-page.html file from different branches. While merging results in conflicts and can't revert.. one pull request with following lines

<html>
<body>
<h1>this is master file</h1>
who is this
</body>
</html>

another pull request with

<html>
<body> 
<h1>this is master file</h1> 
firtst-page firtst-page firtst-page  
</body>
</html>

My questions are

  1. How to resolve this conflict?
  2. Why such conflict?
  3. Do github allow multiple pull request at a time?
Shibin Raju Mathew
  • 920
  • 4
  • 18
  • 41

1 Answers1

2

Every time a file does evolve both in the source branch and the destination branch, there can be conflicts.

More specifically, there will be conflicts on common line with different modified content.

To resolve those conflicts, you can report to "How to resolve merge conflicts in Git?", but you also can, more recently (Dec. 2016), resolve them directly from the GitHub web GUI.
See "Resolve simple merge conflicts on GitHub"

https://cloud.githubusercontent.com/assets/7321362/21116820/fd64b010-c06b-11e6-9dd3-a827e299c5bf.gif

You cannot accept multiple PR without merging them locally first, then making a new PR with the result of that merge (or updating an existing one)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250