I have messed up my git repo a little. I worked on a feature in a separate branch. After finishing the work, I switched to the master to merge it into, but my partner pushed a few files which came into conflict with mine. After the merge, the conflict and pushing the new changes, I saw that I committed the older changes of my partner too.
Now I want to redo this commit/merge. I tried
git reset --soft HEAD^
but when I wanted to push, I got this error message Merge the remote changes before pushing again
.
Can anyone help me?