Pre checkout commit