New York >> It took 13 innings of baseball for the 2023 Giants to score their first run, and it didn’t take much longer for them to claim their first lead, too.

After being shut out on Opening Day and blanked through the first three innings Saturday, Joc Pederson and Brandon Crawford woke up the offense in a big way, leading the Giants to a 7-5 win over the New York Yankees before 41,642 at Yankee Stadium.

It wasn’t without stress, though.

An erratic Camilo Doval allowed a run to score in the ninth inning, loaded the bases with two walks and committed two pitch clock violations before Crawford slickly fielded a chopper from Giancarlo Stanton to start a game-ending double play.

Here’s how it went down.

Power display >> The Yankees turned to 27-year-old right-hander Clarke Schmidt to start Saturday, and by the end of the fourth inning, they had already turned to their bullpen.

After working the count full to lead off the fourth, Pederson put his best golf swing on a sweeping slider from Schmidt and sent it 404 feet into the right-center field seats. The solo shot represented the Giants’ first run and Pederson’s first hit of the season. In fact, it was the first ball Pederson had put in play, and he had to go down to get it. Well below the strike zone, barely a foot above the ground, according to Statcast, it was the seventh-lowest pitch a Giant has homered on since data became available in 2015.

Three batters later, Crawford paused for a moment to admire the mammoth blast that he launched, which put San Francisco ahead 3-2, its first lead of the season, and ended Schmidt’s day. The towering shot landed at least a dozen rows up in the seats, 415 feet away, and followed a hard-hit double by Mike Yastrzemski down the right field line, one of a pair of two-baggers for Yastrzemski on Saturday.

Crawford, who accomplished a goal of playing in all 30 ballparks last season, has now homered in 25 of them. He finished with three RBIs, two runs scored and a triple away from the cycle, after singling and doubling to contribute to scoring rallies in the sixth and the ninth. And on defense, made the play that sealed the win.

“It was a good day,” Crawford said with a smile. “I guess it was my best game of the year so far.”

After the inflammation in his left knee popped up again during spring training, Crawford and the Giants were concerned it would be an ongoing issue this season. But, Crawford said, “it’s been feeling a lot better.”

“If we get Craw healthy and producing at the plate, it’s gonna be a really good season for us,” manager Gabe Kapler said.

Pederson drilled a line- drive single and scored from first in the ninth on Yastrzemski’s second double of the game, and Crawford singled home Yastrzemski for the Giants’ second insurance run of the inning. Pederson and Yastrzemski each scored twice and drove in a run, while David Villar also contributed a two-hit effort in his first start of the season.

The Giants combined for seven runs on 12 hits — five for extra bases.

Doubling up >> The Giants’ starter, Alex Cobb, didn’t last much longer than Schmidt, pulled with two outs in the bottom of the fourth. With new swingman Jakob Junis entering behind him, though, the Giants made it through six innings with a 5-3 lead, effectively a quality start split between two pitchers.

Cobb, whose workload was already going to be limited after missing two weeks in spring training, labored through a 38-pitch first inning. While it felt like Cobb was walking a tight rope the entire inning — not doing himself any favors, throwing a would-be double-play ball into center field — he limited the Yankees to one run and stranded two runners on base.

While Cobb needed 76 pitches (47 strikes) to complete 3 2/3 innings, he recorded six strikeouts, and the only hard-hit ball after the first inning came off the bat of Stanton, who sent a laser beam over the right-field wall for the Yankees’ second run.

“I should’ve taken my time,” Cobb said of his botched throw to second on Stanton’s first-inning comebacker, which allowed Aaron Judge to score and give the Yankees a 1-0 lead. “There were moments where we all bent and things could’ve gotten out of hand and we stepped up and limited the damage, just making a certain pitch. Junis did that really well. Camilo did that really well in the ninth. That decided the game.”

Junis, last on the depth chart of the Giants’ seven capable starters, showed well in his first outing out of the ‘pen, pitching around three straight hits from the top of the Yankees’ order in the fifth (including a hard-luck leadoff double by D.J. LeMahieu on a ball that turned around Yastrzemski in center field) to complete 2 1/3 innings while allowing one run, in a style of usage you’ll see more of from Junis — and perhaps another starter or two — throughout the season.

“That,” Kapler said, “is exactly how we planned on using Junis.”

Save that ball >> No bruised baseballs from Blake Sabol on Saturday, but he’ll have a couple shiners to remember his second major-league game by, after getting drilled by pitches in back-to-back plate appearances.

The more memorable — and permanent — keepsake for Sabol came in his first at-bat, when he dropped down a bunt for his first major-league hit. A 3-1 count didn’t deter him from laying one down the third-base line, with Josh Donaldson playing back on the dirt, and 90 feet later, Sabol was standing on first with a big grin on his face.

Holding the authenticated souvenir, in the same paper bag as his debut jersey, Sabol reminded reporters that there was another pretty good player who bunted for his first hit: Mike Trout. Sabol, an Orange County native, remembers because he was there, at Angel Stadium.

INJURY UPDATE >> Outfielders Mitch Haniger (oblique) and Austin Slater (hamstring) will be re-evaluated when the club returns home Friday, so both will likely need to wait to return, though Kapler said Slater took batting practice Saturday and was “moving in the right direction.”

COMING AND GOING >> The Giants added Bryce Johnson on Saturday and optioned Brett Wisely, who made his initial 26-man roster and played in his first major-league game Thursday as a defensive replacement in center field.

ROTATION UPDATE >> Against the Chicago White Sox, the Giants will start Anthony DeSclafani, Logan Webb and Alex Wood on Monday, Wednesday and Thursday. Kapler said he expects the still-idle Sean Manaea to pitch soon and sources indicated that Manaea could enter Monday’s game behind DeSclafani. Cobb would line up to start at home Friday.