Let' us see how to fix this
"flutter checkout has local changes that would be erased by upgrading" error during flutter upgrade".
You can also use this command as a temporary solution
```
flutter upgrade --force
```
Commands used in the video
```
git status
git reset --hard HEAD
git clean -fd
flutter upgrade
```