Gorkys Hernandez drove in a career-high four runs while matching his career best in hits with three to help lead the Giants past the D-backs, 8-4, on Tuesday night at Chase Field.