SAN FRANCISCO (AP) Austin Riley hit a game-tying home run in the eighth inning then drove in the go-ahead run in the 13th with a two-out single off Reyes Moronta, lifting the Atlanta Braves past the San Francisco Giants 5-4 on Thursday.
Riley and Ozzie Albies both had three hits for Atlanta and Tyler Flowers homered. The Braves have won 10 of 13.
Luke Jackson (3-1), who blew his fourth save on Tuesday, retired six batters to win.
Atlanta hit eight home runs in the four games with San Francisco, the most the Braves have hit in one series at the Giants' waterfront ballpark. They hit seven in a four-game series at Oracle Park in 2012.
Tyler Austin hit his first career pinch-hit home run, and Brandon Belt scored on a wild pitch for San Francisco.
Riley already had one hit before his two-run homer off Tony Watson with two outs in the eighth. It was the 22-year-old's third home run of the series and fifth overall.
The Braves had only one baserunner over the next four innings before Dansby Swanson singled against Moronta (1-4) leading off the 13th. After Freddie Freeman flew out, Swanson stole second base. One out later, Riley lashed a single to right field and Swanson scored easily.
San Francisco got the tying run on base with one out in the bottom of the 13th but Jackson struck out Mac Williamson and Atlanta third baseman Josh Donaldson made a barehanded grab on Donovan Solano's short chopper, throwing to first for the final out.
Atlanta's win overshadowed a strong outing by Giants starter Madison Bumgarner. The big lefty allowed two runs on six hits, walked two and left with a 4-2 lead. Bumgarner has a 2.12 ERA in nine games against the Braves since his last loss to them on Aug. 25, 2012.
Braves starter Kevin Gausman allowed three runs in six innings. Gausman has one win in his last nine starts.