make sure git bulid checkout leaves no uncommitted