Updated

Ricky Nolasco hurled eight strong innings to lead 1, in the opener of a game series.

Nolasco (9-8) allowed one run on six hits and a walk. His four strikeouts in the contest give him 755 with the Marlins, edging him closer to Dontrelle Willis' franchise record of 757.

Logan Morrison and Mike Stanton knocked in runs for the Marlins, who snapped a seven-game losing streak with the victory.

Leo Nunez pitched a scoreless ninth to earn his 32nd save of the season.

Pablo Sandoval's historic home run in the first inning accounted for the Giants' lone run. It was San Francisco's 20th consecutive solo home run, surpassing the 1914 Philadelphia Phillies' record of 19 straight solo shots.

Matt Cain (9-9) allowed just two runs on six hits and two walks through six innings, but took the tough-luck loss.

San Francisco has now lost 11 of its last 14 games.