Reset api current to previous commit