how to resolve conflict code example

Example 1: handling conflict

I try to Avoid conflicts :)
Nothing is personal. Everyone thinks company’s benefits; so I
would like to explain my concern and his/her explanation
makes sense for me. Of course, I can do the things which is
most helpful to my company. So, I try to communicate with
his/her and I would try to understand the concern. Because
everyone has the same goal and wants to get job done
successfully.
We are professionals
I try not allow anything have an impact on the productivity of
team and also, I try to solve the issue among us not engaging
the upper management.
I believe the power of face to face communication, listening
without judging, empathy.
I found a defect, the junior developer did not consider it as
defect, he even retarded and behaved rudely, but thanks to our
team norms I did not continue the discussion and set up a
meeting with the BA, and the leads of the developers and test
lead. Even without the mentioning the issue between us, I
explained the details of the defect I found and asked them to
come up with a decision.
I especially avoid making this personal, probably my team mate
also understood his mistake, and fix the defect quickly, from that
time on our friendship has improved

Example 2: how to resolve conflict in git

This is very question because I am facing
with this issue all the time. Basically
conflict arises when more than one commit 
that has to be merged with some change in the
same place or same line of code. In this case
git will not be able to predict which change
to take. So my approach to fix this issue, 
I would stash my project to temporary memory 
and pull the project from github to working 
directory. I would fix the confict and
merge the project and than I would add,
commit and push it the updated version.


git stash        -- > take my project to temp memory
git pull         -- > pull the project from GitHub to working directory
						(my computer)
git stash pop    -- > take my project to my working directory,     
					fix the conflict and merge the project.
git add .
git commit –m “comment”
git push

Example 3: how to resolve javascript conflict

<!-- for slider -->
<script src="images/jquery-latest.js" type="text/javascript"></script>
<script src="images/jquery.bxslider2.min.js" type="text/javascript"></script>
<script src="images/scripts.js" type="text/javascript"></script>

    <!-- for curtain -->
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>