I updated my readme.md using the GitHub interface and then made a number of local commits without ever pulling the changes made to the remote repository.
Now when I try to push the local changes I get an error:
Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again.
Similarly, when I pull I get an error:
Automatic merge failed; fix conflicts and then commit the result.
What is the simplest way to handle this problem using Git?