Hunter Pence drove in all of San Francisco's runs with a double in the ninth and Madison Bumgarner pitched eight scoreless innings to lead the Giants to a 3-1 victory over the Philadelphia Phillies on Wednesday night.
Bumgarner (12-7) gave up five hits while striking out six and walking none in a pitchers' duel with A.J. Burnett.
It was the sixth win in seven games for first-place San Francisco, which moved two games ahead of the Los Angeles Dodgers in the NL West. The Giants will look to sweep the four-game series on Thursday.
One night after blowing just his third save in 26 chances, closer Jonathan Papelbon (2-2) took the loss.
The Phillies' offense, which ranks near the bottom of the NL in several categories, managed just seven hits. They lost their fourth straight and seventh of eight.
Pence broke a scoreless tie with a softly hit blooper down the right-field line off Papelbon on a full count with two outs.