Neville E. Guard-USA TODAY Sports

Alex Wood teamed with five relievers on a three-hitter, David Villar and Brandon Crawford smacked consecutive pitches for home runs, and the San Francisco Giants bounced back from a series-opening thumping to beat the visiting Los Angeles Dodgers 5-0 Tuesday night.

Wood allowed just one hit in 4 2/3 innings before turning the ball over to Jakob Janis, who was followed by Scott Alexander, John Brebbia, Tyler Rogers and Camilo Doval to complete the Giants' first shutout of the season.

The San Francisco pitchers worked most of the night with a lead after Joc Pederson produced the game's only scoring before the eighth inning with a two-run double in the first off Dodgers starter Dustin May (1-1). LaMonte Wade Jr. and Michael Conforto, who had led off the inning with walks, scored on Pederson's hit.

The Giants busted the game open in the eighth when Mike Yastrzemski doubled ahead of Villar's third homer of the season. Crawford then drilled Evan Phillips' next pitch for his second home run of the year, making it 5-0.

Wood, who also started a Giants victory in his first start but didn't go the required five innings to qualify for a win, got within one out when, with San Francisco leading 2-0, the left-hander retired Freddie Freeman with two on and one out in the fifth.

Junis, a right-hander, took over at that point and got Will Smith to fly out, stranding the potential game-tying runners.

Wood walked three and struck out five in his 4 2/3 innings.

May worked 5 1/3 innings, limiting the Giants to just two runs and two hits. He walked four and struck out three.

The Dodgers threatened again in the sixth, loading the bases with no outs on singles by J.D. Martinez and Trayce Thompson, and a catcher's interference infraction on the Giants' Blake Sabol.

But Junis struck out Chris Taylor before the left-handed Alexander came on to get James Outman to ground into a fielder's choice at the plate and then strike out Miguel Rojas.

Alexander (1-0) was rewarded with the win.

Yastrzemski had a double and a single for the Giants, who out-hit the visitors 7-3.

The Dodgers, who had totaled 23 runs in their previous three games, were shut out for the first time this season. All three of their hits were singles.

More must-reads:

TODAY'S BEST
Do Oilers need more from Connor McDavid to get to Stanley Cup Final?
All-Rookie teams show gems available all over draft
The NBA has not witnessed this much parity in 50 years
Knicks expected to be 'aggressive' in upgrading their roster
Drew Bledsoe offers advice for Patriots rookie QB Drake Maye
2024 AFC revenge games: Brothers, 'Stefon Diggs Bowl' to take center stage
2024 NFC revenge games: Which game should Cowboys, others have circled?
How All-Star Race victory could turn Joey Logano's season around
Xander Schauffele's triumph could open the floodgates for his career
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Ranking the five best MLB free-agent signings of offseason
Veteran WR, former first-round pick announces NFL retirement
Oilers advance to West Final again after holding off Canucks in Game 7
Bengals star WR not expected to sign franchise tender before OTAs
Red Sox RHP diagnosed with ligament damage in elbow
Watch: Caitlin Clark shows off range with logo three, but Fever fall short
Former Dolphins receiving leader announces his retirement from NFL
Detroit Lions dominate PFF's top-25 players under 25
Hall of Famer, legendary Raiders offensive lineman dead at 86
Report: Cavs owner 'would never' trade Donovan Mitchell to this team