Reverting an Old Merge Commit

This will probably only need to be done by the release engineer or build engineer.

Find the merge commit

  1. Checkout the branch that has the merge commit that you want to revert.
  2. Located the SHA1 of the merge commit that you want to revert.
  3. In a shell:

    git revert -m 1 <SHA1>
    

    The interactive shell opens.

  4. Enter a revert merge commit message.

    i for insert.

    Type the message.

    esc then :x to exit shell.

  5. Finish by pushing changes.

  6. Verify that the commit has been reversed.