SAN FRANCISCO (AP) -- Gregor Blanco hit a tiebreaking RBI single in the eighth inning, helping the San Francisco Giants rally for a 6-5 victory over the Philadelphia Phillies on Saturday.

San Francisco Giants' Gregor Blanco swings for an RBI single off Philadelphia Phillies' Jake Diekman in the eighth inning
San Francisco Giants' Gregor Blanco swings for an RBI single off Philadelphia Phillies' Jake Diekman in the eighth inning (AP Photo/Ben Margot)
loading...

Michael Morse had two doubles and a triple as San Francisco won for the second time in three games following a five-game skid. Blanco went 2 for 2 with two RBIs.

Ryan Howard had three hits and three RBIs for the Phillies, who have lost six of eight. Ben Revere went 4 for 5.

Jeremy Affledt (3-1) pitched 1 1-3 innings for the win. Antonio Bastardo (5-7) took the loss. Sergio Romo got the final two outs for his 23rd save.

Joe Panik led off the eighth with a triple and Blanco, who entered as a pinch hitter in the sixth, singled past a drawn-in infield and into left field.

Giants starter Tim Hudson was charged with five runs and eight hits in four-plus innings.

The Phillies scored three times in the fifth to take a 5-1 lead. Howard had a two-run single against Hudson, improving to .343 (24 for 70) for his career against the right-hander.

Kyle Kendrick pitched five innings for the Phillies, yielding four runs and eight hits.

Five relievers combined for five scoreless innings after Hudson departed, allowing San Francisco to rally in the sixth.

Buster Posey singled to open the inning and Pablo Sandoval followed with a high pop fly that dropped between Howard and second baseman Chase Utley. Posey reached second when Utley's backhanded throw took Jimmy Rollins off the base.

Morse doubled home a run and pinch-hitter Adam Duvall drew a walk. Panik and Blanco each followed with soft fly balls that fell in front of outfielders for RBI singles.

TRAINER'S ROOM

Phillies: RHP Mike Adams (right labrum fraying) continues a long toss throwing program. He last pitched in a game on June 6.

WHAT'S NEXT

Phillies: RHP David Buchanan (6-3, 4.40 ERA) makes his third start since returning to the majors for his second stint. After allowing seven home runs in his first five starts, Buchanan has allowed two over his last seven. The Phillies have won eight of their last 13 games at AT&T Park.

Giants: RHP Tim Lincecum (9-8, 4.51 ERA) gets the ball in Sunday's series finale. He is 5-3 in 13 career appearances against the Phillies.

(© 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

More From New Jersey 101.5 FM