remving commits and setting autocommit