I created TestA and TestB branches from the TestUAT branch then made the following changes:
- Changed some code in Class AonTestA
- Commited the changes , created a pull request to merge branch TestAwithTestUAT. It gave no conflicts.
- Changed some other line of codes in the same class AonTestB. Committed these changes, created pull request to merge branchTestBtoTestUAT. Here, it got auto-merged without any conflict errors.
My questions are:
- In which condition will it show merge conflict?
I thought it should show a conflict if the source branch and destination branch both differ from their last code base. 
In the above example, when I perform step 3, the TestUAT branch is changed from its previous code base (as i have merged TestA with TestUAT) and TestB has also changed (code changes done in Class A). I should have got the merge conflict error for this scenario. 
- How to stop the auto-merge which is happening in this case?
 
     
    