Reverting an Old Merge Commit¶
This will probably only need to be done by the release engineer or build engineer.
Find the merge commit¶
- Checkout the branch that has the merge commit that you want to revert.
- Located the SHA1 of the merge commit that you want to revert.
-
In a shell:
git revert -m 1 <SHA1>
The interactive shell opens.
-
Enter a revert merge commit message.
i
for insert.Type the message.
esc
then:x
to exit shell. -
Finish by pushing changes.
- Verify that the commit has been reversed.