SAN FRANCISCO Buster Posey homered in the first, Gorkys Hernandez hit a two-run drive in the second and an RBI double later, and the San Francisco Giants held their lead this time to beat the Miami Marlins 6-3 on Tuesday in another night of plunking by both pitching staffs.