add undo checkout