initialize last_commit=0