SAN FRANCISCO Andrew McCutchen hit an RBI single to drive in Hunter Pence from second base in the seventh inning and the San Francisco Giants beat the St. Louis Cardinals 3-2 on Friday night to snap a four-game losing streak.