After some pulling, merging and conflict resolving, my GIT is stuck. This is what I tried to do (with EGit) on the main project:
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?
The problem here is remote repository files have been changed(i.e. someone else have changed and pushed the file to the repository which you changed in your local copy) and now you also edited the same.So when you try to push the file it throws an error. You have to merge the file and then commit the changes and push.
Make sure you have merged with desired branch, then if your merge results in conflicts, your project will enter Conflicts mode, and the Merge Tool will be enabled.
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 usingmixed reset
as the option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With