DENVER Brandon Crawford kept up his May hitting surge by lining a pair of singles, Gorkys Hernandez had a diving catch in center field to thwart a rally, and the San Francisco Giants avoided being swept with a 7-4 win over the Colorado Rockies on Wednesday night.