I’m working on a project where we have different branches (dev, feature,production). I was working on my feature branch, and did multiple commits on that branch for my changes. Later at some point I took a pull from dev branch and that got merged with my feature branch (which I shouldn’t have done). But, I didn’t realised that mistake at that time, and kept working on my feature branch, and did some more commits.
Now I want to only revert that pull taken from dev and keep all my commits of feature branch, also the one I did after the pull. Is it possible to save those commits? I know a little about Git Reset/revert command, but that will not save my later commits i guess. It will point HEAD to previous commit, before the pull.
Can anyone help how I can save my commits made after that merge? Or my understanding isn’t correct regarding Reset\Revert command?
Note-: Changes are already committed and pushed on remote.I’m using Source Tree.