DETROIT Ty Blach took a shutout into the seventh inning, and the San Francisco Giants held off a late Detroit rally in beating the Tigers 5-4 on Wednesday night.