0

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?

Caster Troy
  • 2,796
  • 2
  • 25
  • 45

1 Answers1

2

Resolve the conflicts using git mergetool, commit and push.

Read more about Merge Conflicts here: How to resolve merge conflicts in Git?

Community
  • 1
  • 1