A day after San Diego first baseman Jesus Guzman hit a home run then acted as though he won Game 7 of the World Series, Madison Bumgarner had a present for him, a second-inning fastball behind his back.

Benches emptied, Bumgarner and Guzman barked, and then it was over ... until Guzman broke a 1-1 tie in the seventh inning with another home run.

Around here, though, Guzman homers do not end things. They start things, namely Giants comeback wins. On Wednesday, they scored three in the bottom of the inning and beat the Padres 4-2.

Gregor Blanco, who turned the 2-1 deficit into a 3-2 advantage with a pinch triple, said it would be wrong to assume that Guzman's homer in the top of the inning ignited the rally.

"We don't see it that way," Blanco said. "That's the way we play the game. We don't worry about what other guys do. I think he did a great job. Our job was to get back in the game and win it, and we were able to do that."

With Marco Scutaro adding an insurance RBI single, the Giants took the series against a division rival that had won its seventh in a row to start the series. Bumgarner earned his team-high seventh win with a seven-inning, two-run performance.

After things looked so dark for the Giants during their three-game losing streak, the sun is starting to peek through the clouds. They have a little momentum going into a four-game series against the Marlins. Beyond that, reinforcements seem poised to arrive.

Angel Pagan, out since May 26 with a hamstring injury, will begin a two-game rehab stint with Class A San Jose on Thursday, hoping to return this weekend. Pablo Sandoval, who has recovered quickly from a sprained foot, will play for San Jose on Saturday and Sunday, hoping to come off the disabled list in Los Angeles on Monday.

Even Brandon Crawford had good news after Wednesday's win. The swelling has subsided in the two fingers that he sprained Tuesday night and he was able to form a fist. Manager Bruce Bochy listed Crawford as doubtful for Thursday night. Crawford is not giving up.