Freddy Peralta pitched six scoreless innings, William Contreras capped a five-run fifth inning with a two-run homer and the Milwaukee Brewers hung on to beat the San Francisco Giants 5-3 on Wednesday night. Peralta (9-7) allowed two walks and Thairo Estrada's base hit through five innings as the Brewers built a 5-0 lead. The Giants threatened in the sixth with a two-out single by Tyler Fitzgerald and a walk before Peralta struck out Heliot Ramos and let out a scream as he walked from the mound.