Fix: flutter upgrade says "Your flutter checkout has local changes that would be erased by upgrading"
flutter upgrade aborts if git status in the SDK folder prints anything. Inspect it, restore pubspec.lock or git stash -u, and use --force only as a last resort.