title: How to remove commits from a pull request
body: <p>I did a pull request but after that I made some commits to the project locally which ended polluting my pull request, I tried to remove it but without any luck.</p>
  
  <p>I found some similar questions on StackOverflow but I can't apply what's in there.
  It's my first pull request on GitHub so it's kinda strange to me how all of this works.</p>
  
  <p>The highlighted commit is the one I need to keep and remove all the other stuff.
  It becomes the fourth commit in the history because I make some merge stuff.</p>
  
  <p><a href="https://i.stack.imgur.com/rapAX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rapAX.png" alt="enter image description here"></a></p>
  
  <p>my git log
  <a href="https://i.stack.imgur.com/Ja84G.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ja84G.png" alt="enter image description here"></a></p>
  
  <p>Can someone please explain what's going on and how to fix this problem? </p>