title: How to delete an specific old commit without deleting the changes in the code (i.e change the git story basically)
body: <p>I have a repository, it's only mine, so there's no problem on breaking anything. Also there's only one branch, I think that makes things easier.
  Let's say I have this 7 commits:</p>
  
  <p>A -> B -> C -> D -> E -> F -> G</p>
  
  <p>And I want to delete commits C and D</p>
  
  <p>A -> B -> E -> F -> G</p>
  
  <p>Being A the first commit ever made, and G the last commit.</p>
  
  <p>How can I do that? Without touching my code, just the git history.</p>
  
  <p>The only thing I know I can do is reset the Head, but that won't work since I don't want to remove E, F and G.</p>