A night after he chattered Pablo Sandoval into a game-winning home run in the ninth inning, Hunter Pence stood on second base in the eighth inning Wednesday night with the Giants trailing again and no way to communicate to hitter Brandon Belt.

Except telepathically, of course.

Pence smiled and said he had a mind-to-mind talk with Belt to let him know he could do it.

" 'Synergy.' Put it on a T-shirt," Belt said after his three-run homer erased a two-run deficit and propelled the Giants to a 9-6 victory against the Diamondbacks and a comeback-fueled three-game sweep.

The alternate Giants' slogan might be, "It's never too late to win a ballgame."

The Giants have played six games against Arizona and tormented them in the later innings in every one. Belt's homer was the team's fifth against the Diamondbacks in the eighth or ninth innings, the second by Belt and the third off David Hernandez. Belt had a game-ending single against Arizona in their first meeting.

For the second consecutive night, an Arizona reliever was booed off the field. Pablo Sandoval beat J.J. Putz with a two-run, ninth-inning homer Tuesday night.

Nobody was happier to see Belt's homer than Tim Lincecum, who regressed after two good starts and allowed five runs in five innings , matching a career high with 10 hits.

Lincecum surrendered a three-run Cliff Pennington homer an inning after Angel Pagan homered to start the game. When the Giants clawed back to make it 4-3 Arizona in the fifth, Lincecum gave up another run in the bottom half. But his offense picked him up.

"It just shows a lot about the character of these guys how hard they fight and how hard they want to win," Lincecum said. "Today I continuously put them in a hole, giving up a run every time they scored a comeback run. That did make it a little tough for them, but they fought hard and here we are winning."

The Giants pounded former A's starter Brandon McCarthy and the Arizona bullpen for eight extra-base hits, including a 460-foot monster blast just right of center field by Pence judged to be the longest homer of his career.

Pence downplayed the distance of his solo homer against McCarthy.

"It felt good," he said, "but what felt better was Belt hitting a three-run homer and us getting a lead."