title: How to reverse a merge commit (Git)?
body: <p>So my colleague was editing some code on a repo, however she had not pulled some recent changes and so the software would not allow her to commit her changes.</p>
  
  <p>We went into the shell and pulled the commits that she had omitted and she was able to push, the only problem is that it drew those changes into her diverged branch and attributed those commits to her.</p>
  
  <p>It looks like this:</p>
  
  <p>A-B-C-D-E (say D and E were by someone else)</p>
  
  <p>My colleague had this:</p>
  
  <p>A-B-C, and wanted to add some more on.</p>
  
  <p>So she pulled D and E and pushed those changes and now it looks like this:</p>
  
  <p>A-B-C-D-E-F, except that the changes D, E, and F are now from her account.</p>
  
  <p>Is there away to keep her changes (F) but have the timeline revert to when D and E were attributed to someone else?</p>
  
  <p>Thanks!</p>
  
  <p>Graphic representation of problem:</p>
  
  <p>A-B-C-D-E (most recent version of master)</p>
  
  <p>A-B-C (colleague has this)</p>
  
  <p>A-B-C-F (colleague makes edits) (branches hath diverged)</p>
  
  <p>!ERROR! (colleague tries to commit and push)</p>
  
  <p>A-B-C-D-E-F (colleague merges master into her branch)</p>
  
  <p>A-B-C-D-E-F (colleague pushes)</p>
  
  <p>GitHub UI now does not display changes D-E, they are lumped into a "Merge branch 'master' ..."</p>