So I've got a feature branch that I wanted to merge into my dev branch, but without thinking during my pull request I've synced the branches which has created a merge commit from dev->feature branch before I merged feature->dev. But dev has a lot of stuff I don't want in my feature branch and I need to revert the merge. I've tried:
git checkout feature
git revert #mergecommit
but its giving me
error: commit #mergecommit is a merge but no -m option was given.
fatal: revert failed
I'm stuck at this point and really don't want to mess the branches up trying to revert this badly. Any help would be appreciated.