Brendan Gibbons made a 38-yard field goal with 5 seconds left, lifting No. 23 Michigan to a 12-10 win over Michigan State on Saturday.