SAN FRANCISCO (AP) Evan Longoria hit a three-run double in the seventh inning to rally the San Francisco Giants past Los Angeles 3-2 on Monday night, ending the Dodgers' four-game win streak despite two more hits from Cody Bellinger.
Joe Panik and Yangervis Solarte had two hits apiece for the Giants. San Francisco ended a four-game slide that included a series sweep by the New York Yankees last weekend.
The Giants were shut out through six innings and stranded three runners in scoring position before nearly batting around in the seventh.
Panik singled off Ross Stripling (1-2) with one out and moved to third on Solarte's double. After Stripling walked Brandon Belt to load the bases, Buster Posey struck out swinging against Dylan Floro. Longoria, who flied out as a pinch hitter in the sixth, then lashed a 2-1 pitch from Floro down the left-field line to clear the bases.
Sam Dyson (1-0) retired five batters to earn the win. Will Smith pitched the ninth for his seventh save in seven chances.
Bellinger stayed hot with two hits, a walk and an RBI, his 37th of the season - a major league record before May 1. That raised his batting average to a big league-best .434. The right fielder also threw out Brandon Crawford trying to go from first to third on Kevin Pillar's single in the second.
Max Muncy had an RBI double for the Dodgers. Joc Pederson scored on Bellinger's single.
Giants right fielder Gerardo Parra made a 9-1 putout in the seventh after pinch-hitter David Freese overran first base following a single.
Los Angeles scored both its runs in the sixth but missed a chance for more when Kike Hernandez lined out to Longoria at third, who stepped on the bag to double up Bellinger.