Error al intentar ejecutar `flutter upgrade` o` flutter change channel`

Intento actualizar mi SDK de Flutter y también cambiar mi canal de Flutter amaster, pero encuentro el siguiente error:

git: error: Your local changes to the following files would be overwritten by checkout:
git:    examples/catalog/android/build.gradle
git:    examples/catalog/android/gradle/wrapper/gradle-wrapper.properties
git:    packages/flutter_tools/gradle/flutter.gradle
git: Please commit your changes or stash them before you switch branches.
git: Aborting
Switching channels failed with error code 1.

¿Por qué sucede esto y cómo solucionarlo?

Respuestas a la pregunta(2)

Su respuesta a la pregunta