How to undo your git failure?