title: Git remove file from commit history
body: <p>I accidentally committed a change in a file that does not relates to my current branch and I need to remove this change from my commit history.</p>
  
  <p>This is the file I want to remove fom my history:</p>
  
  <p><a href="https://i.stack.imgur.com/dl0by.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dl0by.png" alt="enter image description here"></a></p>
  
  <p>How can I achieve this?</p>