LOS ANGELES (AP) — Joe Panik hit a game-tying single off Los Angeles closer Kenley Jansen with one out in the 10th inning and scored on Buster Posey's RBI single, and the Giants beat the Dodgers 5-4 on Saturday night.
Adrian Gonzalez homered leading off the 10th to put the Dodgers up 4-3 before the Giants rallied to win with four consecutive hits off Jansen (2-2).
Denard Span started the comeback with a one-out double. Panik singled in Span to tie the game and Brandon Belt followed with a bloop single to right. Posey then lined an 0-1 pitch to left center as Panik scored easily.
Chris Stratton, the ninth pitcher used by Giants manager Bruce Bochy, retired three batters for his first major league win.
It's San Francisco's sixth walkoff win this season and their second against Los Angeles.
Gonzalez, Justin Turner and Trayce Thompson had two hits apiece for the Dodgers, who lost for the third time in five games.
Both teams were forced to go deep into their bullpens after starters Jeff Samardzija of San Francisco and Scott Kazmir of Los Angeles struggled.
Stratton, the last available reliever in the Giants' bullpen, gave up the home run to Gonzalez on an 0-1 pitch. Left fielder Jarret Parker tried to make a leaping catch at the fence but came up short. It's Gonzalez's sixth home run this season and the 296th of his career.
The Giants took a 3-2 lead in the sixth when Panik scored on Matt Duffy's fielder's choice grounder when Los Angeles second baseman Chase Utley's throw to first base was off target.
Thompson, whose older brother Klay was in attendance one day after helping the Golden State Warriors win Game 4 of the NBA Finals, tied it with a two-out, bases-loaded walk in the seventh.
Duffy and Brandon Crawford each singled in runs for San Francisco in the first.
Kazmir pitched into the sixth and allowed three runs for the Dodgers. Samardzija allowed two runs and seven hits in a season-low 4 2/3 innings.
The Giants held a brief ceremony before the game honoring their 1986 team, which became the ninth team in history to have a winning season after losing 100 or more games the previous year. First baseman Will Clark, second baseman Robby Thompson and outfielder Jeffery Leonard were among the former players in attendance.
Dodgers: LHP Hyun-Jin Ryu will pitch for Single-A Rancho Cucamonga on Sunday in his first outing since May 25 when he suffered a setback in his recovery from left shoulder surgery. Ryu will likely need to make four more rehab starts, according to manager Dave Roberts.
Giants: RHP Matt Cain will come off the disabled list and start Monday in the series opener against Milwaukee. Cain has been sidelined since May 28 with a right hamstring strain ... Kelby Tomlinson decided to have a cast put on his left hand to better protect his sprained left thumb. Tomlinson had initially worn a splint. ... RHP Sergio Romo took another step forward in his rehab by throwing off a mound before the game.
Dodgers: LHP Julio Urias (0-1) will make a fourth attempt to get his first career win in the majors in the series finale Sunday. Urias has pitched just 11 2/3 innings total in his previous three starts.
Giants: RHP Jake Peavy (2-6) has 14 career wins and a lifetime 2.50 ERA in 30 career starts against the Dodgers.
(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)
for more features.