How to undo clearing or offset of a crredit memo to an invoice

I applied a credit memo to an invoice. how do I undo it?