I ran a git pull that ended in a conflict. I resolved the conflict and everything is fine now (I used mergetool also).
git pull
When I commit the resolved file
As the error message says you cannot do a partial commit after a merge. Instead of committing just file.php you should commit all the changes.
file.php
This should work.
git commit -m "Fixing merge"