The SF Giants have re-signed former Twins right-handed reliever Cody Stashak to a minor-league deal.