Updated

San Francisco, CA (SportsNetwork.com) - Hunter Pence went 4-for-5 with a two- run homer and three RBI as the San Francisco Giants beat the Atlanta Braves, 10-4, in the rubber match of a three-game series.

Brandon Crawford went 3-for-5 with a two-run homer and three RBI for the Giants, who went 5-1 against Atlanta this season. Michael Morse added a solo homer.

San Francisco starter Madison Bumgarner (5-3) allowed four runs on seven hits with five strikeouts over five innings.

"The offense picked me up today big time," Bumgarner said. "They played their butts off and battled through nine innings."

Chris Johnson went 2-for-3 with two RBI and a run scored for the Braves. Andrelton Simmons and Freddie Freeman each knocked in a run.

Julio Teheran (2-3) got the start for Atlanta and gave up five runs -- four earned -- on seven hits with five walks over 3 1/3 innings.

"He just had a tough time griping the ball," Atlanta manager Fredi Gonzalez said of Teheran. "I don't know if it was just a lack of humidity or he just couldn't get a good grip on it. He tried to battle through it and just couldn't get it done."

The Braves jumped out to a 2-0 lead in the top of the first. Tyler Pastornicky led off with a single and raced home on Freeman's double to center. Freeman scored on Johnson's double to left.

But the Giants responded with three runs in the bottom half of the frame. Gregor Blanco walked before Pence cleared the wall in right-center field. With one out, Pablo Sandoval singled and Michael Morse walked. After Tyler Colvin struck out swinging, Crawford hit an RBI single to shallow left field.

San Francisco tacked on another run in the second. Blanco walked and stole second before Pence grounded out. Blanco then stole third and scored on Evan Gattis' throwing error, making it a 4-2 game.

Atlanta tied things up in the top of the fourth. Gattis led off with a double to left and raced home on Johnson's double to left. Following two quick outs, Simmons tripled to right-center field to plate Johnson.

The Giants took the lead back for good in the bottom half of the inning. Pence and Buster Posey singled to put men on the corners with one out. Sandoval followed with an RBI single to left. Alex Wood replaced Teheran on the mound and got the final two outs of the frame.

The home team scored a pair of runs in the fifth. Crawford led off with a double and crossed the plate on Blanco's two-out single to left. Blanco stole second and raced home on Pence's single to left-center field.

Morse's homer in the sixth off Wood made it an 8-4 game. Crawford added a two- run homer off David Carpenter in the eighth.

Game Notes

Blanco stole three bases and scored three runs ... The Giants won two series in a season over the Braves for the first time since 2008 ... Braves outfielder B.J. Upton was ejected in the sixth after arguing with home plate umpire Lance Barrett following his third strikeout ... Bumgarner improved to 4-3 lifetime against the Braves ... The Giants start a four-game series against the Marlins on Thursday, while the Braves begin a three-game series at St. Louis on Friday.