Los Angeles Dodgers’ Justin Turner (right), scores to win the game on a single by Matt Kemp as Atlanta Braves catcher Evan Gattis takes a late throw during the 10th inning of a baseball game on Wednesday in Los Angeles.

Agencies/Los Angeles

Matt Kemp singled in the winning run in the bottom of the 10th inning after homering in consecutive games for the first time in over a year and the Dodgers beat the Atlanta Braves 3-2 Wednesday night for their season-best fifth straight victory.

‘’Boy, is he locked in right now,’’ Atlanta starter Alex Wood said.

Los Angeles leads San Francisco by three games.

Zack Greinke struck out a season-high 13 and departed with the lead, but didn’t factor in the decision. He is 14-3 at Dodger Stadium with a 2.27 ERA in 23 home starts with the team.‘’All the pitches were working,’’ he said. ‘’A lot of stuff came together.”

Kemp scored the Dodgers’ first two runs of the game, including his 11th homer leading off the second.

‘’He’s been swinging the bat pretty well now,’’ Greinke said of Kemp. ‘’The biggest difference is the power that comes with it. The past week the ball’s been driven. It’s pretty exciting to see.’’

Kemp notched his ninth career walk-off hit, and first since July 18, 2012, against Philadelphia. He hadn’t homered in consecutive games since last July.

‘’It’s a great feeling knowing you helped the team win a game,’’ he said. ‘’We’re pretty confident every day. It feels good to be in position to score a run or take that extra base. I’m not as fast as I want to be, but it’s coming.’’

Pinch-hitter Justin Turner singled to open the 10th and took second on a wild pitch by David Hale (3-3). Kemp followed with the winning single to left.

J.P. Howell (3-3) got the win in relief, walking two and striking out one in one inning.

The Braves tied the game 2-2 on Justin Upton’s home run off closer Kenley Jansen leading off the ninth. Upton’s three hits tied a season high.

‘’As soon as it left my hand I just prayed for Justin not to hit it,’’ Jansen said.

Upton’s brother, B.J., struck out four times.

Juan Uribe gave the Dodgers a 2-1 lead in the eighth on a hard-hit single with two outs to shortstop Andrelton Simmons, whose throw home sailed wide as Kemp crossed the plate.

Elsewhere, Nick Castellanos hit a three-run homer and drove in a career-high four runs, and Max Scherzer posted his American League-leading 13th victory as the Detroit Tigers snapped a four-game losing streak with a 7-2 win over the Chicago White Sox.

Scherzer (13-3) was staked to a six-run lead in the bottom of the first inning, capped by Castellanos’ opposite-field blast.

Castellanos added an RBI single in the seventh inning and right fielder Torii Hunter had three hits, scored twice and drove in another run for the Tigers (58-46).

Scherzer, who won a major-league best 21 games and captured the AL Cy Young award last season, allowed only five singles in seven innings while walking one and striking out six.

Corey Kluber pitched a three-hit 85-pitch shutout, facing the minimum 27 batters, while outduelling right-hander Felix Hernandez, as the Cleveland Indians beat the Seattle Mariners 3-0.

Kluber (11-6) was masterful as he continues to establish himself as the new number one starter for the Indians (53-54), who earlier in the day traded their former lead pitcher, right-hander Justin Masterson, to St Louis.

Hernandez (11-3) lost for the first time since June 13. Hernandez pitched seven innings, allowing a two-run double to Yan Gomes in the fifth.

Right-hander Yovani Gallardo allowed four hits over seven shutout innings and backup catcher Martin Maldonado drove in a career-high-tying four runs as the Milwaukee Brewers beat the Tampa Bay Rays 5-0.

With the win, the Brewers avoided a series sweep and improved to 60-49 atop the National League Central.

The Rays fell to 53-55, missing a chance to reach .500 for the first time since April 22.