首页 > 解决方案 > Flutter upgrade fail

问题描述

When I attempt to update Flutter I get the following error.

error: Your local changes to the following files would be overwritten by merge: examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj

Please commit your changes or stash them before you merge.

Aborting Updating f9bb4289e..5ab9e7072 Process finished with exit code 1

I suspect at some point I did something in the examples project and I don't care about loosing the changes.

What is the easiest thing to do?

标签: flutter

解决方案


转到您的颤振主目录并执行git checkout .git reset head --hard


推荐阅读