$ 0 0 In this case, what worked for me was to cd into the Flutter SDK folder and stashing the changed files (git add . | git stash) before running the Flutter upgrade command.