Preventing a conflict from happening is much better than having to deal with one that has occurred. Here's how to avoid conflict and maintain harmonious relationships with co-workers:
Avoid being continuously judgemental of others. Judge them by their actions and results, rather than by who they are.
Stop trying to change people. Try to influence their actions and behaviour, because you will not be able to change their personalities.
Be helpful to others whenever possible. When they are overloaded, offer to assist. You'll earn the gratitude of those around you.
When people are angry at you or at others, give them a chance to blow off steam without interruption. You don't have to agree with their point of view, but you can agree with their right to be angry.
Maintain a cheerful disposition. It is hard for people to pick an argument with someone who has a positive demeanour.
Keep the lines of communication open. Always be open to the opinions and ideas of others.
Make humour a part of the workplace. Keep things light. It will never be taken as a sign that you don't care.
Focus on facts and information, rather than on rumours and feelings.
Involve people in changes that you make. Listen to and understand their interests, objectives, and concerns.
Deal with issues that are hard to discuss, otherwise the problem will intensify. Understand why these "undiscussables" exist, so they can be brought to the surface and dealt with.
Immediately resolve issues that prevent completion of obligations by the targeted date.
Don't shy away from conflict about ideas. Point out that you respect the opinions of others, even though you may not agree with them.
Develop an understanding with your colleagues as to how conflict will be dealt with when it arises.
Participate in setting ground rules for your team. Reiterate, for example, that members don't have to like each other, but they should respect each other.