Pep Guardiola has signed a two-year contract extension to stay at Manchester City, the club announced Thursday.