On my local repo I have an origin and upstream remote repositories. Origin is a forked repo or upstream. To update my origin I run the command git pull --rebase upstream master and that will make my origin be the same as upstream. This time its not working. I must have about 7-8 commits that have not been rebased. I am trying to delete them but can't find any ways. I have Googled and looked here but any suggestions I tried just did not work.
I have the workflow A - B - C - D - E, each letter representing a commit on master. I want to remove commits B, C and D. Is there a way I can do this?