How to resolve conflict in git?

To resolve the conflict in git, edit the files to fix the conflicting changes and then add the resolved files by running “git add” after that to commit the repaired merge,  run “git commit”.  

Git remembers that you are in the middle of a merger, so it sets the parents of the commit correctly