Tim Lincecum pitched six shutout innings as the Giants edged the Phillies 4-1. Pablo Sandoval popped a solo homer to help the Giants win the rubber match of the three-game set between division leaders. Carlos Beltran went 0-for-4 with two strikeouts in his debut with San Francisco.