Mike Yastrzemski had a pair of home runs, including a walk-off three-run shot as the San Francisco Giants completed a four-run deficit comeback, beating the San Diego Padres 7-4.