MINNEAPOLIS — Didi Gregorius went 3 for 5 with a double and a triple and drove in three runs, and the Yankees clobbered Minnesota’s pitching once again in a 10-7 victory Wednesday night.

Aaron Hicks, Gleyber Torres and Edwin Encarnación each hit solo home runs for the Yankees, who outscored the Twins 30-27 to win this three-game series and turned Target Field into a private batting cage with a total of 48 hits, half of them for extra bases. They had nine extra-base hits Wednesday.

After ravaging Twins relievers during a split of the first two games, the Yankees turned on Jake Odorizzi (11-5) this time. Odorizzi, who started the All-Star Game, went four innings, giving up 10 hits, two walks and nine runs.

Gregorius, who went 8 for 10 with 10 R.B.I. in his two starts, hit a run-scoring double to ignite a four-run second. Mike Tauchman added a two-run triple before the inning was over.