Unmerging a branch in git

Mostly posting as a future reference for me, but surely useful for others who find themselves in the situation of signed off changes becoming unsigned off changes just before deployment. To unmerge a feature branch whilst preserving subsequent commits do the following:

git revert -m 1 hash_of_merge_commit
comments powered by Disqus