Hernandez signed a minor-league contract with the Brewers on Friday, Robert Murray of FanSided.com reports.
The deal includes an invitation to spring training, where Hernandez will compete for a utility infielder job. The 25-year-old has shown very little with the bat during his time in the majors to this point, slashing just .190/.286/.222 over 221 plate appearances.