Implement git rollback logic.