title: Git - Remove commit from history
body: <p>I did something extremely stupid. I entered a curseword in my code and I pushed the code on the master branch. I pushed a few more times after that so people do not pull the bad stuff, but I can still find the curseword in the commits history.</p>
  
  <p>Is there a way to delete the commit from history? Edit: I don't want to add the file to gitignore because we need that file.</p>
  
  <p>Thanks</p>