You are in the middle of a merge, try to read the messages you copied, it’s pretty clear what you should do:
You have unmerged paths.
(fix conflicts and run “git commit”)
(use “git merge –abort” to abort the merge)
So first clear up the merge conflicts
use the merge tool of your choice (eg: tortoise merge, meld )
or do it by hand, in the conflicted file you should see arrows like
<<<<<<< HEAD, select the appropriate one(s)
and then commit
git commit -m "foobar"
Now you should be able to push/pull from your remote, but you may need to pull first, to get the new changes merged locally.
Alternatively, if you don't need your code, and just want to toss out everything and get master, you can allays
git reset --hard origin/master
to reset your local repo to the state of origin/master, but you will loose all local changes
If you don't want to merge changes and still want to update your locale, run:
git reset --hard HEAD
This will reset your local with the head and then pull your remote using the git pull.
If you've already committed your merger locally (but haven't gone remote yet), and would like to return it again:
git reset --hard HEAD~1