I had a lot of changes to commit and push so I committed them. I then tried to pull from GitHub but there were conflicts that couldn't be resolved so I used vimdiff to try and do it manually.
I remember using gitdiff a couple of times before and that it was really hard and unintuitive (even though vim is my editor of choice) but for some reason I was stupidly gung-ho and before I knew it I suddenly only had one screen, there were weird characters everywhere and it would only let me exit if I accepted the changes!
So I accepted and pulling again showed that it had merged. :(
There was a lot of additions in the commit and one debug cycle can take over 30 hours so it's essential I am able to undo the merge without losing the changes from the previous commit.
I'm sorry I know there are lots of posts about merging in git but most of them are related to merging branches which seems related but different and the few that are related to my pull situation I'm worried that I might loose the commits.
Can someone help me with this please? FYI, I'm on a Linux commandline.