SAN FRANCISCO -- - Luis González and Joey Bart homered on consecutive pitches in the fourth inning and the San Francisco Giants withstood a late rally to beat the Chicago Cubs 5-4 on Saturday night.