undoing commits before the last one