I am having a doubt. Two developers clone a project from git repository. The two guys made changes in same file. Then they trying to add and commit. If they do like that, the guy who commits earlier can push with no conflicts while for the other one, merge conflicts will arise.
How to avoid this type of condition and also overcome it?