Added git undo function.