"cannot pull into a repository with state: merging_resolved"

Erel Segal-Halevi picture Erel Segal-Halevi · Apr 29, 2013 · Viewed 45.8k times · Source

After some pulling, merging and conflict resolving, my GIT is stuck. This is what I tried to do (with EGit) on the main project:

  • "Pull" returns "cannot pull into a repository with state: merging_resolved"
  • "Fetch from upstream" returns "No ref to fetch from GeniusWebSocket - origin - everything up to date."
  • "Merge" is greyed in the menu.
  • "Commit" returns "Commit/amend not possible...".
  • "Push to upstream" returns "rejected - non-fast-forward".
  • "Add to index" does nothing.

Near the project title, I see [Merged master up-arrow 1 down-arrow 1].

$ git status
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 1 and 1 different commit each, respectively.
#
nothing to commit (working directory clean)

How can I proceed?

Answer

VonC picture VonC · Apr 29, 2013

Since you have finished your merge, and if you don't have any pending changes, you can try a git reset --hard, and see if the issue persists. (See EGit reset your current HEAD)


Ankit Marothi suggests in the comments:

I resolved it by resetting it from egit, using Team->Reset and using mixed reset as the option.