SAN DIEGO (AP) — Jurickson Profar hit a three-run homer in the eighth inning, and the San Diego Padres rallied late to beat the Minnesota Twins 7-5 on Tuesday night. “Hard-fought, back-and-forth game,” Padres manager Mike Shildt said. “The guys did a really nice job of taking some really, really quality at-bats at the end of the game.

” Manny Machado also went deep as San Diego won its second straight against Minnesota in a matchup of playoff contenders. Jake Cronenworth had two hits and scored two runs. “This team has been doing it all year and we are going to continue to do it,” Machado said of the comeback win.

“We are just having a good time when we are playing.” The Padres trailed 5-3 before Profar drove a low slider from Steven Okert (3-2) to left field. Donovan Solano and Luis Arraez singled ahead of Profar's 20th homer.

“That's the number one thing that switched this year for me. I play baseball with my instincts. .

.. You guys are seeing the real Profar playing baseball,” the switch-hitter said.

“I play baseball with a lot of confidence right now.” Xander Bogaerts tacked on an RBI double against Ronny Henriquez, giving San Diego a 7-5 lead. “Some nights it might not be pretty, but this year we have been able to find a way, for sure,” Bogaerts said.

“What we have been doing is pretty remarkable.” Tanner Scott (8-5) got the win despite allowing two runs and four hits in the eighth. Robert Suarez handled the ninth for his 29th save.

The r.